You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, Map is an arbitrary constructor to make a new object with functional methods that can be chained -- but these might be usefully integrated into the Object hierarchy relatively close to the root, maybe even to std.object itself.
(yes, I know it's a bad example with side effects, but it still illustrates the point of not being able to get the most out of std.functional when you have to nest or compose everything before you can use it readably)
The text was updated successfully, but these errors were encountered:
With the current design, calls have to be nested like this:
Which, aside from being ugly as hell, is not terribly functional. We should be able to write functional code like this:
Here,
Map
is an arbitrary constructor to make a new object with functional methods that can be chained -- but these might be usefully integrated into the Object hierarchy relatively close to the root, maybe even tostd.object
itself.(yes, I know it's a bad example with side effects, but it still illustrates the point of not being able to get the most out of
std.functional
when you have to nest or compose everything before you can use it readably)The text was updated successfully, but these errors were encountered: