3 implementations of toString_help:
#1
/digego/extempore/tree/v0.8.9/tests/core/algebraic_data_types.xtm ·
#2
/digego/extempore/tree/v0.8.9/libs/base/prelude.xtm ·
#3
/digego/extempore/tree/v0.8.9/examples/contrib/algebraic_data_types.xtm
;; print & toString for lists
(bind-func toString_help:[String*,List{!a}*,String*]*
(lambda (lst s)
(Cons$ lst (x xs)
(Nil$ xs ()
(toString_help xs (cat s (toString x)))
(toString_help xs (cat s (toString x) (Str ","))))
(cat s (Str "]")))))