4 ms·
From the beginning of the article: > The basic operators here are ^., .~, and %~. If you’re not a fan of funny-looking operators, Control.Lens provides more he
by mejutoco 4y ago
From the beginning of the article:
> The basic operators here are ^., .~, and %~. If you’re not a fan of funny-looking operators, Control.Lens provides more helpfully-named functions called view, set, and over (a.k.a. mapping); these three operators are just aliases for the named functions, respectively. For these exercises, we’ll be using the operators.
- n0us 4y ago...yes and it would be clearer if they used the named functions
- thomastjeffery 4y agoBut the person who "is not a fan of funny-looking operators" still has to read them; and that's the part that makes funny-looking operators undesirable to them in the first place!
- mejutoco 4y agoTo be fair, if after reading that paragraph they find it so unsufferable, they can skip the article. The author makes a choice and acknowledges other opinions but, at the end of the day, has their opinion.