File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 11module Data.String where
22
3- foreign import lengthS
4- " function lengthS(s) {\
5- \ return s.length;\
6- \}" :: String -> Number
7-
83foreign import charAt
94 " function charAt(i) {\
105 \ return function(s) {\
116 \ return s.charAt(i); \
127 \ };\
138 \}" :: Number -> String -> String
149
10+ foreign import fromCharCode
11+ " function fromCharCode(n) {\
12+ \ return String.fromCharCode(n);\
13+ \}" :: Number -> String
14+
1515foreign import indexOfS
1616 " function indexOfS(s1) {\
1717 \ return function(s2) {\
@@ -26,6 +26,11 @@ foreign import lastIndexOfS
2626 \ };\
2727 \}" :: String -> String -> Number
2828
29+ foreign import lengthS
30+ " function lengthS(s) {\
31+ \ return s.length;\
32+ \}" :: String -> Number
33+
2934foreign import localeCompare
3035 " function localeCompare(s1) {\
3136 \ return function(s2) {\
You can’t perform that action at this time.
0 commit comments