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 39bb1c3 commit 87c5a16Copy full SHA for 87c5a16
src/Data/List/Types.purs
@@ -77,8 +77,7 @@ instance functorList :: Functor List where
77
-- https://discuss.ocaml.org/t/a-new-list-map-that-is-both-stack-safe-and-fast/865
78
-- chunk sizes determined through experimentation
79
listMap :: forall a b. (a -> b) -> List a -> List b
80
-listMap f = startUnrolledMap unrollLimit
81
- where
+listMap f = startUnrolledMap unrollLimit where
82
-- iterate the unrolled map up to 1000 times,
83
-- which hits up to 5000 elements
84
unrollLimit = 1000
0 commit comments