[Haskell-cafe] <*> for Data.Sequence: mission accomplished
David Feuer
david.feuer at gmail.com
Sat Dec 20 01:48:19 UTC 2014
On Dec 19, 2014 7:01 PM, "Felipe Lessa" <felipe.lessa at gmail.com> wrote:
> - It would be nice to have at least one comment explaining the
> decisions surrounding the code and how it works. I read it without
> previous knowledge about how it would accomplish its goal and it was a
> bit painful. It's pretty clever code!
Thanks! I plan to write up a full explanation with diagrams and everything,
but that will take me a bit.
> - Why is ap3FT the only of the ap*FT family that cares about length fs
> < 2?
I wrote ap2FT and ap3FT well before I figured out how (or if!) the rest
would work. I forgot to strip those cases from ap3FT. Thanks!
> - Why have the ap* family of functions instead of just deconstructing
> fs and wrapping Seq on apShort?
Because I didn't think of it. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141219/93b65e24/attachment.html>
More information about the Haskell-Cafe
mailing list