File tree 1 file changed +10
-5
lines changed 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
module Data.String where
2
2
3
- foreign import lengthS
4
- " function lengthS(s) {\
5
- \ return s.length;\
6
- \}" :: String -> Number
7
-
8
3
foreign import charAt
9
4
" function charAt(i) {\
10
5
\ return function(s) {\
11
6
\ return s.charAt(i); \
12
7
\ };\
13
8
\}" :: Number -> String -> String
14
9
10
+ foreign import fromCharCode
11
+ " function fromCharCode(n) {\
12
+ \ return String.fromCharCode(n);\
13
+ \}" :: Number -> String
14
+
15
15
foreign import indexOfS
16
16
" function indexOfS(s1) {\
17
17
\ return function(s2) {\
@@ -26,6 +26,11 @@ foreign import lastIndexOfS
26
26
\ };\
27
27
\}" :: String -> String -> Number
28
28
29
+ foreign import lengthS
30
+ " function lengthS(s) {\
31
+ \ return s.length;\
32
+ \}" :: String -> Number
33
+
29
34
foreign import localeCompare
30
35
" function localeCompare(s1) {\
31
36
\ return function(s2) {\
You can’t perform that action at this time.
0 commit comments