paginate(tree, [size])

Group a tree's values into fixed-size sets

JavaScript function underlying the Tree.paginate builtin, with the same parameters and effects.