Skip to content

Add chunk function to split array into smaller - #265

Merged
mattfarina merged 1 commit into
Masterminds:masterfrom
karelbilek:master
Dec 10, 2020
Merged

mattfarina merged 1 commit into
Masterminds:masterfrom
karelbilek:master

Conversation

@karelbilek

@karelbilek karelbilek commented Oct 26, 2020 •

Copy link
Copy Markdown
Contributor

this was a function that I found helpful to have.

I tried to follow your style.

@technosophos

Copy link
Copy Markdown
Member

Should the order of arguments be reversed? One of the things we've tried to do is make it easier to pipe data from one command to the next. Doing tuple 1 2 3 4 5 | chunk 3 feels a little more ergonomic than using a variable in between.

@karelbilek

Copy link
Copy Markdown
Contributor Author

Oh sure. I rarely use piping and use vars instead so I forgot about this usecase.

@karelbilek

Copy link
Copy Markdown
Contributor Author

changed, rebased

@technosophos technosophos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you.

@mattfarina
mattfarina merged commit 364146e into Masterminds:master Dec 10, 2020
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.

3 participants