-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reader literal to split a value #55
Comments
I implemented sth. quite similar in context of mach (which is using aero). I vote for your feature request :-) Bdw. maybe a filter for whitespace caused artifacts would be useful ...
|
+1 for having a built-in |
@igrishaev not sure if your question is directed to me or the |
I have a need to split (as per
clojure.string/split
) a single value (coming from#env
) into a sequence, and implemented the following reader literal in my own code:It seems to work well, and I thought it might be useful in aero core? Happy to prepare a PR if the authors are on board and that would be more helpful (or just copy this code directly - I'm happy either way).
Two disclaimers:
"\\s*,\\s*"
for comma delimited data), perhaps offering a fixed set of predefined regexes selectable via keywords in the second position ofvalue
?The text was updated successfully, but these errors were encountered: