-
_Currying_ is the process of transforming a function that takes multiple arguments into a series of functions that each take one argument and return one result. This is accomplished through nesting. I…
-
Rosette has pretty bad messages for at least some functions; e.g., if i pass the wrong value to `max`:
```
(max #t #f)
```
I get the following error:
```
. . [assert] curried:extreme: expe…
-
Currently we have config options for "functionDeclaration.spaceBeforeParentheses", "functionExpression.spaceBeforeParentheses", etc. It would be good to have a similar "functionApplication.spaceBefore…
-
In the spirit of having curried versions builtin functions (#32018, #36163, #36759, https://github.com/JuliaLang/julia/issues/42485#issuecomment-933010383, etc.), I often want to use something like `g…
-
I've checked how fast it is on purescript-halogen-realworld
and got this
![2020-06-10-11:04:53-screenshot](https://user-images.githubusercontent.com/7573215/84243080-5dcd9c00-ab0a-11ea-9d54-4b87…
-
In order to deal with `null` we have the "Elvis" `?:` to invoke a method. To ease the use of curried functions, we could add a "Carly" operator with the same behavior on direct calls. So instead of ch…
-
# Suggestion
Pertaining to the discussion in #1213 and having looked at [similar suggestions](https://github.com/microsoft/TypeScript/issues?q=is%3Aissue+is%3Aopen+label%3ASuggestion+higher+kinded+…
-
https://github.com/purescript/purescript-effect/blob/master/src/Effect.js#L12
```javascript
return function () {
return f(a())();
};
```
where `f` is a purescript function. Pur…
-
Code:
`(curry 0)`
Expected Result:
The documentation for the contract for the function `curry` says that it has a mandatory argument `proc` which must satisfy the predicate `procedure?` `(procedu…
-
Currently, as `curry` checks the number of passed parameters against the function's `length` property, curried functions can not have optional parameters, which can be frustrating at times.
**Ideas…