@@ -6,7 +6,7 @@ import Data.Array as Array
6
6
import Data.Foldable (foldMap , foldl )
7
7
import Data.FoldableWithIndex (foldMapWithIndex , foldlWithIndex , foldrWithIndex )
8
8
import Data.Function (on )
9
- import Data.List (List (..), Pattern (..), alterAt , catMaybes , concat , concatMap , delete , deleteAt , deleteBy , drop , dropEnd , dropWhile , elemIndex , elemLastIndex , filter , filterM , findIndex , findLastIndex , foldM , fromFoldable , group , groupAll , groupAllBy , groupBy , head , init , insert , insertAt , insertBy , intersect , intersectBy , last , length , mapMaybe , mapWithIndex , modifyAt , nub , nubBy , nubByEq , nubEq , null , partition , range , reverse , singleton , snoc , sort , sortBy , span , stripPrefix , tail , take , takeEnd , takeWhile , transpose , uncons , union , unionBy , unsnoc , unzip , updateAt , zip , zipWith , zipWithA , (!!), (..), (:), (\\))
9
+ import Data.List (List (..), Pattern (..), alterAt , catMaybes , concat , concatMap , delete , deleteAt , deleteBy , drop , dropEnd , dropWhile , elemIndex , elemLastIndex , filter , filterM , findIndex , findLastIndex , foldM , fromFoldable , group , groupAll , groupAllBy , groupBy , head , init , insert , insertAt , insertBy , intersect , intersectBy , last , length , mapMaybe , modifyAt , nub , nubBy , nubByEq , nubEq , null , partition , range , reverse , singleton , snoc , sort , sortBy , span , stripPrefix , tail , take , takeEnd , takeWhile , transpose , uncons , union , unionBy , unsnoc , unzip , updateAt , zip , zipWith , zipWithA , (!!), (..), (:), (\\))
10
10
import Data.List.NonEmpty as NEL
11
11
import Data.Maybe (Maybe (..), isNothing , fromJust )
12
12
import Data.Monoid.Additive (Additive (..))
@@ -218,9 +218,6 @@ testList = do
218
218
log " catMaybe should take an list of Maybe values and throw out Nothings"
219
219
assert $ catMaybes (l [Nothing , Just 2 , Nothing , Just 4 ]) == l [2 , 4 ]
220
220
221
- log " mapWithIndex should take a list of values and apply a function which also takes the index into account"
222
- assert $ mapWithIndex (\x ix -> x + ix) (l [0 , 1 , 2 , 3 ]) == l [0 , 2 , 4 , 6 ]
223
-
224
221
log " sort should reorder a list into ascending order based on the result of compare"
225
222
assert $ sort (l [1 , 3 , 2 , 5 , 6 , 4 ]) == l [1 , 2 , 3 , 4 , 5 , 6 ]
226
223
0 commit comments