docs: migrate lib.math to doc-comments
This commit is contained in:
parent
0adb3533c1
commit
a179065a69
1 changed files with 18 additions and 6 deletions
|
|
@ -1,11 +1,23 @@
|
|||
lib: {
|
||||
## Return the smaller of two numbers.
|
||||
##
|
||||
## @type Int -> Int -> Int
|
||||
/**
|
||||
Return the smaller of two numbers.
|
||||
|
||||
# Type
|
||||
|
||||
```
|
||||
min :: Int -> Int -> Int
|
||||
```
|
||||
*/
|
||||
min = x: y: if x < y then x else y;
|
||||
|
||||
## Return the larger of two numbers.
|
||||
##
|
||||
## @type Int -> Int -> Int
|
||||
/**
|
||||
Return the larger of two numbers.
|
||||
|
||||
# Type
|
||||
|
||||
```
|
||||
max :: Int -> Int -> Int
|
||||
```
|
||||
*/
|
||||
max = x: y: if x > y then x else y;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue