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
this isn't great because (a) it's a little memory-inefficient and (b) it's just ugly and/or out of place, for example, when enumerating an object's properties (serialization, debugging, etc.). a way to fix this is by assigning these methods in the prototype instead:
currently, each class exposes its
fantasy-land/
adapter methods by assigning to them in the constructor:purify/src/Maybe.ts
Lines 434 to 441 in 9fffe0d
this isn't great because (a) it's a little memory-inefficient and (b) it's just ugly and/or out of place, for example, when enumerating an object's properties (serialization, debugging, etc.). a way to fix this is by assigning these methods in the prototype instead:
i'm down to make a PR, so just let me know
The text was updated successfully, but these errors were encountered: