File tree Expand file tree Collapse file tree 4 files changed +1
-20
lines changed Expand file tree Collapse file tree 4 files changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -194,15 +194,6 @@ drop :: Int -> String -> String
194
194
195
195
Returns the string without the first ` n ` characters.
196
196
197
- #### ` count `
198
-
199
- ``` purescript
200
- count :: (Char -> Boolean) -> String -> Int
201
- ```
202
-
203
- Returns the number of contiguous characters at the beginning
204
- of the string for which the predicate holds.
205
-
206
197
#### ` split `
207
198
208
199
``` purescript
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Wraps Javascript `RegExp` objects.
14
14
15
15
##### Instances
16
16
``` purescript
17
- instance showRegex :: Show Regex
17
+ Show Regex
18
18
```
19
19
20
20
#### ` RegexFlags `
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ module Data.String
18
18
, singleton
19
19
, localeCompare
20
20
, replace
21
- , count
22
21
, take
23
22
, takeWhile
24
23
, drop
Original file line number Diff line number Diff line change @@ -138,15 +138,6 @@ testString = do
138
138
assert $ drop 2 " ab" == " "
139
139
assert $ drop 3 " ab" == " "
140
140
141
- log " count"
142
- assert $ count (\c -> true ) " " == 0
143
- assert $ count (\c -> true ) " ab" == 2
144
- assert $ count (\c -> false ) " ab" == 0
145
- assert $ count (\c -> c == ' a' ) " aabbcc" == 2
146
- assert $ count (\c -> c == ' b' ) " aabbcc" == 0
147
- assert $ count (\c -> c /= ' a' ) " aabbcc" == 0
148
- assert $ count (\c -> c /= ' b' ) " aabbcc" == 2
149
-
150
141
log " split"
151
142
assert $ split " " " " == []
152
143
assert $ split " " " a" == [" a" ]
You can’t perform that action at this time.
0 commit comments