Author | Message |
---|---|
kmarlis
Posts: 35
|
Posted 16:55 Mar 13, 2019 |
Hi everyone! Here's my fmap code from class today.
This doesn't have Jay's Iterator idea implemented. I also just realized I didn't put typing in there. Oops! Last edited by kmarlis at
17:16 Mar 13, 2019.
|
jpatel77
Posts: 44
|
Posted 00:58 Mar 14, 2019 |
As I tried to register
It is obvious that we can register each cases individually, however, I felt this one to be more sensible as it conveys that it works for "an iterable object" (somewhat similar to the "works for foldable" in haskell) rather than for a specific subtype. Although, argument can be made the other way too, I decided to keep it this way only. I thought about merging it under the Edit: I think registering each case separately would be the best thing to do, if we were to use
Last edited by jpatel77 at
01:25 Mar 14, 2019.
|