We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f49396 commit c60ce90Copy full SHA for c60ce90
README.md
@@ -104,4 +104,13 @@
104
105
split :: Regex -> String -> [String]
106
107
- test :: Regex -> String -> Boolean
+ test :: Regex -> String -> Boolean
108
+
109
110
+## Module Data.String.Unsafe
111
112
+### Values
113
114
+ charAt :: Number -> String -> Char
115
116
+ charCodeAt :: Number -> String -> Number
src/Data/String/Unsafe.purs
@@ -0,0 +1,24 @@
1
+module Data.String.Unsafe
2
+ ( charAt
3
+ , charCodeAt
4
+ ) where
5
6
+ import Data.Char
7
8
+ foreign import charCodeAt
9
+ """
10
+ function charCodeAt(i) {
11
+ return function(s) {
12
+ return s.charCodeAt(i);
13
+ };
14
+ }
15
+ """ :: Number -> String -> Number
16
17
+ foreign import charAt
18
19
+ function charAt(i) {
20
21
+ return s.charAt(i);
22
23
24
+ """ :: Number -> String -> Char
0 commit comments