Closed BNAndras closed 9 months ago
For folds (reduces) the given list from the left with a function -> direction dependent function applied to non-empty list
and folds (reduces) the given list from the right with a function -> direction dependent function applied to non-empty list
, I used the older tests but updated the argument names to the newer ones (elt
and acc
instead of x
and y
).
@kotp, the Reverse
from reverse-string
is conflicting with the Reverse
from here. There's already a single community solution for reverse-string
. I can either break that solution and make Reverse
be ReverseString
in reverse-string
or prefix the functions here with My
like MyAppend
, MyReverse
, and so on.
@kotp, the
Reverse
fromreverse-string
is conflicting with theReverse
from here. There's already a single community solution forreverse-string
. I can either break that solution and makeReverse
beReverseString
inreverse-string
or prefix the functions here withMy
likeMyAppend
,MyReverse
, and so on.
We could also use the word reversal_of
or just reversal
.
Works for me!
Works for me!
Or reverses(list)
or reversed(list)
.
Related to #172.
I have two bugs in my foldl/foldr implementation to resolve