You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm starting out with reasonml. I'm confused why mapWithIndex and keepWithIndex have different parameter orders for their function parameter: mapWithIndex takes (int, 'a) => ... while keepWithIndex takes ('a, int) => ....
Hello! I'm starting out with reasonml. I'm confused why
mapWithIndex
andkeepWithIndex
have different parameter orders for their function parameter:mapWithIndex
takes(int, 'a) => ...
whilekeepWithIndex
takes('a, int) => ...
.For comparison, Tablecloth's
mapWithIndex
has a consistent ordering with itsfilterWithIndex
:f:(int -> 'a -> ...)
; Rust dodges this with anenumerate
method for iterators which can then be filtered or mapped as necessary.The text was updated successfully, but these errors were encountered: