Paulo R. Maurici Jr.
Paulo R. Maurici Jr.
@CrossEye: > Again, is there any reason that this should be unlawful?: > > ```js > class Just extends Maybe { > ... > map(f) { > const r =...
I don't mean to dismiss your request, but Haskell's `MaybeApply` will turn any Apply into an Applicative. Maybe you can incorporate the logic into your `Obj`.
@mwalkerwells I usually write my FL implementations from scratch, since I write mostly Greasemonkey scripts, which makes working with libraries (imports/exports) difficult. Also, most implementations have a lot of methods...
Pull request #3 submitted
When defining `arrayFunctor`, there is no need for manual types on the function, because of the type annotation. The following is correctly inferred by TypeScript: ```ts const arrayFunctor: StaticFunctor =...
Haskell's implementation was exactly my inspiration for the code I shared. I will give some thought into how to implement your idea for the next iteration of the library.
I don't know if this is exactly what you're looking for: ### Setup Let's create a few placeholders. ```typescript const _A = Symbol('placehoderA'); const _B = Symbol('placehoderB'); type _A =...
I see what you're trying to do, but may I point out, while this would work, it would only fill the placeholders in order. Say you want to change parameters...
Very clean and simple solution! Can you give me some code example of the problem you are trying to solve with this library? I might think of another approach.