Profile cover photo
Profile photo
Oliver Becker
70 followers -
Freelance Software Developer Java/Spring/Web/XML
Freelance Software Developer Java/Spring/Web/XML

70 followers
About
Oliver's posts

Any suggestions how to name a function that takes a list (or collection or array or sequence) and a number n and returns a list of lists by grouping the items by position modulo n?

For example: input is (a,b,c,d,e,f,g), applying the to-be-named-function with the argument 3 results in ((a,d,g), (b,e), (c,f)).

Another explanation: put the items one by one into a table having n columns:
a b c
d e f
g
Then the result is a list of the columns in this table.

And while we're at it - what would be a good name for a function the returns the list of the rows?

Post has attachment
Oliver Becker changed his profile photo.
Photo
Wait while more posts are being loaded