forked from xxq250/Nasal-Interpreter
12 lines
256 B
Plaintext
12 lines
256 B
Plaintext
# utils.nas
|
|
# 2023 by ValKmjolnir
|
|
use std.math;
|
|
|
|
# when count can be divided exactly by times, return true
|
|
var times_trigger = func(times, count) {
|
|
return math.mod(times, count)==0;
|
|
}
|
|
|
|
var terminal_size = func {
|
|
return __terminal_size;
|
|
} |