mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2024-11-24 14:28:44 +01:00
doc: change code from inline to blocks
This commit is contained in:
parent
22a655fd24
commit
e1dc5ce132
|
@ -1,21 +1,31 @@
|
|||
#import "../template.typ": conf
|
||||
#show: doc => conf(
|
||||
doc
|
||||
)
|
||||
#show: conf
|
||||
|
||||
= Type/signature notation
|
||||
|
||||
Operator signature that takes two unnamed arbitrary numbers of the same type and returns another:
|
||||
`Op<T: Num> [ T T ] -> T`
|
||||
|
||||
```iowo
|
||||
Op<T: Num> [ T T ] -> T
|
||||
```
|
||||
|
||||
Operator that takes a 32 bit signed integer and returns another:
|
||||
`Op i32 -> i32`
|
||||
|
||||
```iowo
|
||||
Op i32 -> i32
|
||||
```
|
||||
|
||||
Operator that does the same with a generic arbitrary number type:
|
||||
`Op<T: Num> T -> T`
|
||||
|
||||
```iowo
|
||||
Op<T: Num> T -> T
|
||||
```
|
||||
|
||||
One dimensional list of 32 bit signed integers:
|
||||
`[i32]`
|
||||
|
||||
```iowo
|
||||
[i32]
|
||||
```
|
||||
|
||||
Due to inference, you'll also be able to use that in some mathematical operations with integers:
|
||||
|
||||
|
|
Loading…
Reference in a new issue