write initial type signature notation proposal #5
1 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,11 @@ Operator signature that takes two unnamed arbitrary numbers of the same type and
|
||||||
Op<T: Num> [ T T ] -> T
|
Op<T: Num> [ T T ] -> T
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Operator signature that takes any color and any number type, and returns a color again:
|
||||||
|
```iowo
|
||||||
|
Op<C: Color, M: Num> [ C M ] -> C
|
||||||
|
```
|
||||||
|
|
||||||
Operator that takes a 32 bit signed integer and returns another:
|
Operator that takes a 32 bit signed integer and returns another:
|
||||||
|
|
||||||
```iowo
|
```iowo
|
||||||
|
|
Loading…
Reference in a new issue