-
Phase 1:
- [x] Drop all `sequenceT` functions -- they are unused.
- [x] Add a smart constructor `Validation.success(t)`
- [x] Add a smart constructor `Validation.softFailure(t, e)`
- [x] Add a s…
-
I think all the function arguments should be curried so that we can call them either as `(a,b,c)` or `a => b => c`
Since we know the arity of all these functions, we can use an internal `curry2, cu…
dakom updated
6 years ago
-
@LoganBarnett
I've been inconsistently running into issues with `__` where flow thinks its presence means the function is actually being invoked. So a simple example:
```js
difference(__, [1,2…
-
Glancing at the intro section on https://docs.perl6.org/type/Whatever I notice a couple of problems.
1. Roughly the second half of the section is probably not clear enough for the average reader. T…
-
I’ve never really had the time to get my hands on it, but AFAIK pure functional languages come with currying out of the box.
I like it how _1-liners_ stays lean – without dependencies – without inter…
-
```js
// a. Alternative syntax for immediate invocation.
const [e, msg] = trike(getMessage)(buffer)
// b. Allow wrapping before invocation.
const getMessageT = trike(getMessage)
const [e, msg] …
-
One last big thanks for the awesome codemod!
Curried versions of `get()` and `getOr()` cause an error:
```
TypeError: Cannot read property 'type' of undefined
at skip (/Users/dlj/projects/op…
-
-
Does the grouping method by predicate supports curried functions? I couldn't make it work.. perhaps it's because it does not support byte-compiled function well? Below is a minimal example.
### Set…
-
currently the compiler generates this functions, (useful for composition on hamler):
'and'/1 =
fun(_0) ->
fun(_1) ->
let =
in case of
…