docs: migrate lib.math to doc-comments

This commit is contained in:
KFears 2025-09-14 20:47:25 +04:00
parent 0adb3533c1
commit a179065a69
Signed by: KFearsoff
SSH key fingerprint: SHA256:sn39ts1xvi/KGQNlqDyrj8nNlhp9ilndgIolXKnPraw

View file

@ -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;
}