|
integer
|
-256
|
|
decimal
|
-256.15
|
|
string
|
"string", 'string'
|
|
boolean
|
true, false
|
|
arrays
|
[value, ...]
|
|
tuple
|
(value, ...) ¹
|
|
map
|
map(key1, key2,
tuple(value1, value2), tuple(value1, value2) )² |
|
resource
|
string('filename')
|
if (expression) statementsswitch (expression) case value statements case value statementsfor (list) statements($value)for (val : list) statements(val)for (10) statements($index)|
confirm/validateNull(message, result)
|
confirm/validate the result is null¹
|
|
confirm/validateTrue(message, result)
|
confirm/validate result equals 'true'¹
|
|
confirm/validateMatches(message, regex, actual)
|
confirm/validate the actual value matches the given regex¹
|
|
confirm/validateContains(message, regex, actual)
|
confirm/validate the actual value contains the given regex¹
|
|
confirm/validateEquals(message, expected, actual)
|
confirm/validate the actual value is equal to the expected value¹
|
|
not(boolean)
|
inverse the value of the boolean
|
|
echo(messages)
|
show the messages in the terminal
|
|
debug(messages)
|
show the messages when in debug mode
|
|
padRight(pad, len, strings)
|
add character to end of string until len is reached
|
|
padLeft(pad, len, strings)
|
add character to beginning of string until len is reached
|
|
pad(pad, len, location, strings)
|
add character to location of string until len is reached
|
|
upper(strings)
|
uppercases the strings
|
|
lower(strings)
|
lowercases the strings
|
|
substring(string, start, stop)
|
retrieves a substring of the given string
|
|
replace(regex, replacement, strings)
|
replaces regex with replacement in the given strings
|
|
find(regex, strings)
|
find the regex in the given strings
|
|
lines(strings)
|
return the number of lines in strings
|
|
columns(strings)
|
return the number of columns in strings, splitted by '\t' and ';'
|
|
trim(strings)
|
removes leading and trailing spaces
|
|
join(separator, strings)
|
combines given strings adding the separator in between
|
|
split(regex, strings)
|
splits the given strings using the regex
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.