redplanetlabs / specter

Clojure(Script)'s missing piece
Apache License 2.0
2.51k stars 102 forks source link

(s/transform s/ALL identity "abc") returns a reversed sequence. Is this expected? #308

Closed sunilnandihalli closed 3 years ago

sunilnandihalli commented 3 years ago

I would have expected (s/transform s/ALL identity "abc") to return "abc" but it returns (\c \b \a).

sunilnandihalli commented 3 years ago

I realized we can just do (s/transform [(s/parser sequence #(apply str %))] identity "abcde")