Closed jiegillet closed 11 months ago
This exercise has been deprecated, not worth adding an analysis for.
The advice is to implement list-ops
instead, which we have.
@ceddlyburge do you think we should remove the exercise or not worry about it and leave it? AFAIK it's the track's choice.
For what its worth, I personally do not like the accumulate exercise, and very much prefer the list-ops one. (just my 2 cents)
I agree, the list-ops one is better, and as you mention, this one is deprecated, so probably removing it is best. There are about 100 published solutions of it, so those people will lose those solutions, but I don't think that is a huge deal. Those people will almost certainly have done other solutions as well, so probably won't really notice.
The exercise description says:
The exercise can be solved with
accumulate = List.map
but should avoid the use of anyList
functions and promote implementing it with pattern matching and recursion instead. The example solution should also be changed accordingly.