[−][src]Module hatter::builtin
Hatter comes with a few built-in functions to help make your life easier, all defined in this module.
Functions
add |
|
and | Special: Short-circuiting |
concat | Combine several Values into a String. Used internally by String interpolation. |
contains_ | Does the string contain a substring?
|
count | Count occurences of substring in string.
|
div |
|
empty_ | True if the length of a Map, List, or String is |
eq |
|
gt |
|
gte |
|
index |
|
len | Get the length of a Map, List, or String. Returns 0 for all other values. |
lt |
|
lte |
|
mod |
|
mul |
|
neq |
|
not |
|
or | Special: Short-circuiting |
pop | Remove the last Value from a List. Modifies the List. |
Print one or more Values, without newline. | |
push | Add a Value to a List. Modifies the List. |
puts | Print one or more Values, wit newlines. |
range |
|
range_inclusive |
|
replace | Find and replace all matches in a target string. |
split | Split a string into a List by a separator.
|
sub |
|
to_lowercase | Rust's |
to_uppercase | Rust's |
type | Returns the String name of a Value's type. |
when | Returns a Value if a condition is true. Used internally by tag attributes. |