Skip to content

Commit 89863b1

Browse files
committed
Add Prelude.Unsafe module
1 parent a32d0ca commit 89863b1

File tree

4 files changed

+933
-903
lines changed

4 files changed

+933
-903
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Important notice
2+
3+
This module should not yet be depended on, it is for the upcoming 0.7 compiler release.
4+
15
# Module Documentation
26

37
## Module Prelude
@@ -1105,4 +1109,17 @@ instance showOrdering :: Show Ordering
11051109

11061110

11071111

1112+
## Module Prelude.Unsafe
1113+
1114+
#### `unsafeIndex`
1115+
1116+
``` purescript
1117+
unsafeIndex :: forall a. [a] -> Number -> a
1118+
```
1119+
1120+
Find the element of an array at the specified index.
1121+
1122+
Note: this function can cause unpredictable failure at runtime if the index is out-of-bounds.
1123+
1124+
11081125

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"homepage": "https://github.com/purescript/purescript-prelude",
44
"description": "The PureScript Prelude",
55
"keywords": [
6-
"purescript",
6+
"purescript"
77
],
88
"license": "MIT",
99
"ignore": [

0 commit comments

Comments
 (0)