-
Notifications
You must be signed in to change notification settings - Fork 15
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
Refactor //str and //seq #234
Comments
@ericzhang6222 we want to move a few functions from
Currently these functions only work on |
Thx @nofun97 |
Following functions should be moved to
|
1. Updated `seq` library to add functions that are used for manipulating sequenced data structures including string and array. These functions are: `contains`, `has_prefix`, `has_suffix`, `sub`, `split` and `join`. 2. Changed some APIs signature, like changed `//seq.sub(subject, old, new)` to `//seq.sub(old, new, subject)`. It can help to support following code: ``` let rmspace = //seq.sub(" ", ""); rmspace("hello world"), rmspace("a b c")] ```
Fixed by #240 |
Some functions currently in
//str
belong in//seq
. Review and move.The text was updated successfully, but these errors were encountered: