Sometimes you may be interested in a property of a value rather than the value itself.
property_of_span <| span{property} |
When working with arrays, you may want to grab a value or range of values associated with some respective index or indexes. To get a value at a specific index, provide the index (starting at zero) of the value you’d like to retrieve.
first_item <| arr{0} |
second_item <| arr{1} |
third_item <| arr{2} |
To get a range of values starting at the start index and going up to but not including the end index.
first_half_of_ten <| arr{0:5} |
second_half_of_ten <| arr{5:10} |
To get a range of values following an increment other than one, append a third colon separated number to the property string.
even_indices <| arr{0:10:2} |
odd_indices <| arr{1:10:2} |
An example of this is getting the length of a string.
length_of_paragraph <| p{length} |
Or the length of an array.
arr <| { "a", "b", "c" } |
x <| arr{length} | -- 3
Coming soon.