File tree Expand file tree Collapse file tree 3 files changed +0
-19
lines changed Expand file tree Collapse file tree 3 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -186,15 +186,6 @@ drop :: Int -> String -> String
186
186
187
187
Returns the string without the first ` n ` characters.
188
188
189
- #### ` count `
190
-
191
- ``` purescript
192
- count :: (Char -> Boolean) -> String -> Int
193
- ```
194
-
195
- Returns the number of contiguous characters at the beginning
196
- of the string for which the predicate holds.
197
-
198
189
#### ` split `
199
190
200
191
``` purescript
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ module Data.String
17
17
, singleton
18
18
, localeCompare
19
19
, replace
20
- , count
21
20
, take
22
21
, takeWhile
23
22
, drop
Original file line number Diff line number Diff line change @@ -137,15 +137,6 @@ testString = do
137
137
assert $ drop 3 " ab" == " "
138
138
assert $ drop (-1 ) " ab" == " ab"
139
139
140
- log " count"
141
- assert $ count (\c -> true ) " " == 0
142
- assert $ count (\c -> true ) " ab" == 2
143
- assert $ count (\c -> false ) " ab" == 0
144
- assert $ count (\c -> c == ' a' ) " aabbcc" == 2
145
- assert $ count (\c -> c == ' b' ) " aabbcc" == 0
146
- assert $ count (\c -> c /= ' a' ) " aabbcc" == 0
147
- assert $ count (\c -> c /= ' b' ) " aabbcc" == 2
148
-
149
140
log " split"
150
141
assert $ split " " " " == []
151
142
assert $ split " " " a" == [" a" ]
You can’t perform that action at this time.
0 commit comments