mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2024-12-22 01:55:51 +01:00
add example for multiple generics
This commit is contained in:
parent
e1dc5ce132
commit
b91e697449
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
|
||||
```
|
||||
|
||||
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:
|
||||
|
||||
```iowo
|
||||
|
|
Loading…
Reference in a new issue