JLUtilityFunctionsΒΆ
jutils.spad line 1 [edit on github]
This package provides different JL
utility functions.
- jlEvalString: String -> Boolean
jlEvalString(str)
evaluatesstr
inJL
, where the output is a Boolean.
- jlEvalString: String -> Integer
jlEvalString(str)
evaluatesstr
inJL
, where the output is an Integer.
- jlEvalString: String -> JLFloat32
jlEvalString(str)
evaluatesstr
inJL
, where the output is aJLFloat32
.
- jlEvalString: String -> JLFloat64
jlEvalString(str)
evaluatesstr
inJL
, where the output is aJLFloat64
.
- jlEvalString: String -> JLInt64
jlEvalString(str)
evaluatesstr
inJL
, where the output is aJLInt64
.
- jlEvalString: String -> NonNegativeInteger
jlEvalString(str)
evaluatesstr
inJL
, where the output is an Non Negative Integer.
- jlEvalString: String -> PositiveInteger
jlEvalString(str)
evaluatesstr
inJL
, where the output is an Positive Integer.
- jlGCCollect: () -> Void
jlGCCollect()
forces aJL
garbage collector run.
- jlImport: String -> Boolean
jlImport(modpackfunc)
imports the module, package or functionmodpackfunc
and makes its exported name(s
) available. Returnsfalse
if it can not be imported.
- jlInclude: String -> Boolean
jlInclude(file.jl)
loads and evaluates the content of theJL
file file.jl
in the current global scope.
- jlInitialize: Boolean -> Boolean
jlInitialize(init)
initializes theJL
environment ifinit
istrue
, otherwise clears theJL
environment. Normally, it should not be used since it is automatically called.
- jlRandomString: PositiveInteger -> String
jlRandomString(n)
returns a random string ofn
characters.