We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7451586 commit 759daf2Copy full SHA for 759daf2
src/Data/List/Types.purs
@@ -74,8 +74,7 @@ instance functorList :: Functor List where
74
-- https://discuss.ocaml.org/t/a-new-list-map-that-is-both-stack-safe-and-fast/865
75
-- chunk sizes determined through experimentation
76
listMap :: forall a b. (a -> b) -> List a -> List b
77
-listMap f = startUnrolledMap unrollLimit
78
- where
+listMap f = startUnrolledMap unrollLimit where
79
-- iterate the unrolled map up to 1000 times,
80
-- which hits up to 5000 elements
81
unrollLimit = 1000
0 commit comments