Closed stefanvanburen closed 2 years ago
What about changing map
to keep
, instead?
@weavejester swapped map
for keep
, but I don't think it affects the output since util/to-str
converts nil
to ""
.
Ah, right, it would have to be (keep #(some-> % name) ...)
.
I'm a little leery about using util/to-str
in this case as it might swallow errors or prevent future syntax sugar. Using #(some-> % name)
instead solves the bug without allowing additional data types.
@weavejester ah yep, that'll do it. Changed the implementation and updated the tests (no extra spaces anymore).
Fixes #168.
Feel free to suggest a better commit message or further tests; I've just added a simple test here.