util.ml
Util functions for the OS, kivy process, network and more.
Definitions
Time
time : Unit -> Number
traceTime : (Unit -> b) -> b
log the time an action takes to execute
setInterval : Number -> state -> (state->state) -> Unit
args: n, state, tick
run tick every n seconds.
setUpdate : state -> (state->state) ->Unit
Terminal
cls : Unit -> Unit
error : String -> a
setTermFontSize : Number -> Unit
str : a -> String
deprecated. Use lib.string (str)
printl : List a -> Unit
Misc.
setreclimit : Number -> Unit
setCompilerCWD : String -> Unit
randint : Number -> Number -> Number
File system
fileexists : String -> Bool
readFile : String -> Maybe String
readFileUnsafe : String -> String
Network
download : String -> String -> Unit
Basic functions
copy : a -> a
uncurry2 : (a -> b -> c) -> (a,b) -> c
not : Bool -> Bool
float : a -> Number
int : a -> Number
neg : Number -> Number
between : Number-> Number -> Number -> Bool
id : a -> a
const : a -> b -> a
when : Bool -> (Unit -> Unit) -> Unit
mapRecord : (a -> a) -> a -> a
with : a -> b -> b
union : a -> a -> a
times : Number -> (a -> a) -> a -> a
ftee : (a -> Unit) -> (a -> a) -> a -> a