diff options
author | Qrius <[email protected]> | 2024-09-26 00:11:05 +0200 |
---|---|---|
committer | Qrius <[email protected]> | 2024-09-26 00:11:05 +0200 |
commit | 9970b48411b9816fbfa5b6b100a91baed0d44849 (patch) | |
tree | ce6826c246a9441c4d9be5d1658bdfbc8e76e8fd /smp.1 | |
parent | 16f0edd24e5b436e0e5894379248a31a6ec1c029 (diff) | |
download | skaldpress-9970b48411b9816fbfa5b6b100a91baed0d44849.tar.gz skaldpress-9970b48411b9816fbfa5b6b100a91baed0d44849.zip |
Add array_size
Diffstat (limited to 'smp.1')
-rw-r--r-- | smp.1 | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -36,6 +36,20 @@ Runs command on shell, and includes the command output in the output .IP "\fBexpr(<arg1>, <arg2>, ..., <argN>)\fR" Shorthand for running the expr command, expands all arguments, and executes it on the shell. +.IP "\fBdefine_array(<macro_name>)\fR" +Defines a macro as a array, this can later be used with macros like \fBarray_push\fR and \fBarray_each\fR. + +.IP "\fBarray_push(<macro_name>, <value>[, <additional value(s)>])\fR" +On a macro that is defined as a array, this will add one or more elements. + +.IP "\fBarray_each(<macro_name>, <template macro>])\fR" +Push any arguments to array macro +Process each element in a array as a macro-invokation on the second argument +Not the best way to do this, it is not sensibly recursive. + +.IP "\fBarray_size(<macro_name>)\fR" +Will return number of elements in a macro array. + .IP "\fBformat_time(<format>, <time>)\fR" Format a RFC3339-timestamp to the specified format. Format is similar to strftime. Only available if the \fBtime\fR-feature was enabled during compilation. |