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

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
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.
Wait while more posts are being loaded