add 'dump_table' function
This commit is contained in:
parent
8f47565e0a
commit
852bd519c0
|
@ -28,6 +28,11 @@
|
||||||
(with-out-str
|
(with-out-str
|
||||||
(clojure.pprint/pprint x)))}
|
(clojure.pprint/pprint x)))}
|
||||||
|
|
||||||
|
"dump_table"
|
||||||
|
{:fn (fn [x]
|
||||||
|
(with-out-str
|
||||||
|
(clojure.pprint/print-table x)))}
|
||||||
|
|
||||||
"nth"
|
"nth"
|
||||||
{:fn (fn [sequence index & optional-not-found]
|
{:fn (fn [sequence index & optional-not-found]
|
||||||
(let [values (if (map? sequence) ; map instance check to match behaviour of jtwig's first/last implementation
|
(let [values (if (map? sequence) ; map instance check to match behaviour of jtwig's first/last implementation
|
||||||
|
|
Reference in a new issue