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 0edb822 commit e836652Copy full SHA for e836652
src/Data/FoldableWithIndex.purs
@@ -266,13 +266,13 @@ findWithIndex
266
. FoldableWithIndex i f
267
=> (i -> a -> Boolean)
268
-> f a
269
- -> Maybe { index :: i, value :: a}
+ -> Maybe { index :: i, value :: a }
270
findWithIndex p = foldlWithIndex go Nothing
271
where
272
go
273
:: i
274
275
-> a
276
277
- go i Nothing x | p i x = Just { index: i, value: x}
+ go i Nothing x | p i x = Just { index: i, value: x }
278
go _ r _ = r
0 commit comments