Closed chexxor closed 7 years ago
Sounds really cool and useful in some cases, but probably not something to include in this library, in my opinion.
Yeah, can't say I disagree. :) The idea has been recorded here, so will close this. I'm sure someone will make a purescript-record-more library to hold this kind of thing.
@monoidmusician had a super-cool idea. A function which takes an n-field record as argument is like an n-arity function. If we can partially apply a function, we should be able to partially apply fields of a record.
It should work something like this:
Here's the snippet he pasted. He said it needs to be type-checked xD.