31 lines
245 B
Plaintext
31 lines
245 B
Plaintext
function bool => str boolToStr
|
|
{
|
|
if
|
|
{
|
|
"true"
|
|
}
|
|
else
|
|
{
|
|
"false"
|
|
}
|
|
}
|
|
|
|
function int int => int %
|
|
{
|
|
divmod deq
|
|
}
|
|
|
|
function int int => int /
|
|
{
|
|
divmod req deq
|
|
}
|
|
|
|
function int => int decrement
|
|
{
|
|
1 -
|
|
}
|
|
function int => int increment
|
|
{
|
|
1 +
|
|
}
|