minor argument declaration cleanup

This commit is contained in:
Gered 2014-06-19 18:32:02 -04:00
parent 1fbfaae934
commit 159918019a

View file

@ -67,12 +67,12 @@
(library-function "normalize_space" [s]
(StringUtils/normalizeSpace s))
(library-function "nth" [sequence index & optional-not-found]
(library-function "nth" [sequence index & [optional-not-found]]
(let [values (if (map? sequence) ; map instance check to match behaviour of jtwig's first/last implementation
(-> sequence vals)
sequence)]
(if optional-not-found
(nth values index (first optional-not-found))
(nth values index optional-not-found)
(nth values index))))
(library-function "pad_left" [s size & [padding-string]]