Skip to content
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 split_every function #128

Conversation

Yaliang
Copy link
Collaborator

@Yaliang Yaliang commented Dec 19, 2017

split_every(string) → array
Splits string on every character and returns an array.

split_every(string, length) → array
Splits string on every length characters and returns an array. length must be a positive number.

split_every(string, length, limit) → array
Splits string on every length characters and returns an array of size at most limit. The last element in the array always contains everything left in the string. limit must be a positive number.

@Yaliang Yaliang merged commit 7f86f28 into twitter-forks:twitter-master Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant