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
Ok, this one's a bit of a doozy. The 0.x Lambdeth API is similar to Lodash and doesn't allow easy currying. It's an open question whether or not implementing chaining or currying is even a good idea as it may invite users to write extremely costly lines of code. Method chaining will definitely take some work to implement in Solidity but I think it may be possible with some creativity.
The text was updated successfully, but these errors were encountered:
I'm going ahead and refactoring the library so that all relevant methods support currying. This is easy to accomplish by simply passing the input array as the last argument. I didn't do this initial as I was trying to create an API that is identical to Lodash for developers coming from a JS environment, the more I've thought about how to make methods chainable currying seems like the best solution to me as it doesn't involve making the contract any larger or writing any complex and potentially dangerous internal logic/structs to support method chaining ala Lodash.
Ok, this one's a bit of a doozy. The 0.x Lambdeth API is similar to Lodash and doesn't allow easy currying. It's an open question whether or not implementing chaining or currying is even a good idea as it may invite users to write extremely costly lines of code. Method chaining will definitely take some work to implement in Solidity but I think it may be possible with some creativity.
The text was updated successfully, but these errors were encountered: