提交 8e5b6e68 编写于 作者: K KD

Array#in_groups: documentation updated

上级 140c0c88
......@@ -53,7 +53,7 @@ def in_groups_of(number, fill_with = nil)
# ["4", "5"]
# ["6", "7"]
def in_groups(number, fill_with = nil)
# size / number gives minor group size;
# size.div number gives minor group size;
# size % number gives how many objects need extra accommodation;
# each group hold either division or division + 1 items.
division = size.div number
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册