posted 8 years ago
Fyeah, I did it!! Albeit my solution has not the elegance I'd like it to have, here is the code:
I removed an argument, so it's more succinct. Also, I believe:
> that the is a bit ugly, but I have no idea on how to attach an element at the end of the list.
> that the is a rough solution, but I do not know how to make a list with only one element otherwise.
It's a shame that my university is not teaching functional languages, forcing me to self-learn - but I like to do it anyway, so it's pretty OK, I guess.
Thank you for your help.