You're right that what I wrote earlier has no way to deal with a Maybe
field. I think it could be generalized to handle Maybe fields, but then we
could also think of something that is neither a record nor a Maybe of a
record, ...
Anyway, it is not at all pretty but here is a quick idea. First le
There is a bug in my code which is that Dict.get returns a Maybe, so you
will have to handle the possibility that the fieldName is not found using
maybe
case entry of
Just something -> ...
Nothing -> ...
On Mon, Sep 12, 2016 at 3:16 PM, Eduardo Cuducos wrote:
> Many thanks, Ambrose! Th
I'm guessing the question from two posts ago was: if someone creates a
component from a .elm file, and gives you their .js (but not their .elm),
and you also create your own .elm file and use both together, do you pay
the price of having the standard library twice in your code?
On Thu, Sep 22, 20