Closed gspia closed 4 years ago
Yeah I'm fine with these.
Their definitions should be more like the standard library though.
When using If, a simple rule of thumb is to never have an Eval in the second and third argument.
Ok & thanks for thumb rule (I still have a bit difficulties, where to put those Evals etc). Now there is a PR waiting and I changed the implementation to follow the Data.List ways of defining the corresponding functions.
Note: I saw that you made a change---was it filter---to use ('(:) a <$> ....)
. I didn't saw it in the repo when I created a branch for these function. And now I'm thinking that did I do my refresh wrongly or is this ok.
Thanks again!
Guess what, couldn't stop while at it:
Would these fit in into the List.hs?
I was trying to implement the
iterate
function (which gives an infinite list) with a plan that by Zipping e.g. Take 3 and the iteration, it would give something. But it wants to evaluate the iteration fully so it doesn't stop. Maybe not doable?