-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add string manipulation capability #166
Comments
I push several implementations to branch issue_166_string_ops. |
@dubek I've started implementing seq and string? on branch issue_166_string_ops. If you want to help, feel free to send PRs to this branch. I'll probably do make and postscript next. |
@dubek btw, don't bother waiting for travis. Just send pulls against this branch and I'll merge it as soon as I see it. Any issues caught with travis can be dealt with later before this branch is merged onto the mainline. I might collapse/rebase all the commits into a single commit before merging to master anyways to reduce churn in the main history. |
Add a checkbox for process/stepA_mal.txt and process/guide.md updates. |
tcl in #169. I'm working on vimscript and D and go. |
I'll take the "javas": groovy, java, scala. |
I'll take the sharps: cs, fsharp, vb And then crsyal, lua, perl. |
Issue #166. Also, add keyword? step9 test on zero length strings.
@dubek I discovered a bug in some implementations where (keyword? "") throws an error. I added a test in step9 and I'm just going to use travis to show which others still have the issue: https://travis-ci.org/kanaka/mal/builds/108816302 |
Thanks @kanaka, I just noticed myself that c-sharp has this bug. |
@kanaka - Another thing I noticed (in ocaml, maybe others) is that |
Issue kanaka#166. Also, add keyword? step9 test on zero length strings.
Issue kanaka#166. Also, in stepA_mal print out standard startup message.
Issue kanaka#166 With assistance from chouser (thanks!).
Right now there is no cross-implementation way to manipulate (index, slice, etc).
In Clojure, strings are treated as sequences of characters and so sequence functions operate on them. However, as a simple initial (or maybe final) step, simply adding a seq function that turns a string into a list of single character strings would allow manipulation using normal sequence functions (str will already concatenate a sequence of character strings into a single string).
For now I'm thinking this would be an optional stepA function.
So here is the list for adding a seq function:
Also:
The text was updated successfully, but these errors were encountered: