-
**Operating system: Windows**
ReScript version: `10.1.4`
When I use GenType, and I leave my functions curried, I see this in the `.gen.tsx` output:
```ts
const Curry = require('rescript/lib/…
-
According to the grammar in the basic syntax proposal (#162) it seems like curried function types require repeating the `fnty` keyword:
```
expression: "fnty" tuple return_type
return_type: "->…
-
## Compiler version
All Scala 3.3+ versions
## Minimized code
```Scala
class Test:
def test(name: String)(body: => Unit) = ???
def check(element: Any)(expected: String): Unit = ???
…
-
# Currying & 柯里化
https://www.cnblogs.com/xgqfrms/p/14025942.html
> 函数式编程
https://www.cnblogs.com/xgqfrms/p/5730527.html
https://en.wikipedia.org/wiki/Currying
https://zh.wikipedia.org…
-
Currently this sort of thing doesn't work:
```js
s('bd').every(3,n(2))
```
This feels surprising, `s('bd').x(2)`, `x(2, s('bd'))` and `s('bd').every(3, x(2))` work when x=`fast`, but not when it's…
-
So, let's say this setup:
- We have a component that represents a page/screen
- The component is injected into two different _hosts_ (let's say app and engine).
- The component will link to a par…
gossi updated
2 years ago
-
Why create n functions for n selectors? Could just be one function definition
-
### Need
_In order to_ call functions that have multiple inputs in a monadic way
_As a_ user
_I want to_ have nice syntax for curing a function
### Scenario
**Scenario:** fp should provid…
-
Consider the following simple class/instance:
```
class a: Enum {
function fromEnum(a) -> Word;
}
data Food = Curry | Beans | Other
instance Food : Enum {
function fromEnum(x : Food) …
-
Some functions are often invoked with one argument being a constant and they do some preparatory computations that do not need to be done for each row.
Example: `date_format` builds a format object…