Sha256: fd903d0fba5bf6f4ef453b5765c7034ee7c50f7a86c56242ccf5d444e97a77df
Contents?: true
Size: 1.28 KB
Versions: 28
Compression:
Stored size: 1.28 KB
Contents
{ "schema_type": "object", "schema_version": "1.0", "name": "in_groups", "path": "packages/ree_array/package/ree_array/functions/in_groups.rb", "mount_as": "fn", "class": "ReeArray::InGroups", "factory": null, "methods": [ { "doc": "Splits or iterates over the array in +number+ of groups, padding any\nremaining slots with +fill_with+ unless it is +false+.\n\n in_groups(%w(1 2 3 4 5 6 7 8 9 10), 3, fill_with: nil) {|group| p group}\n [\"1\", \"2\", \"3\", \"4\"]\n [\"5\", \"6\", \"7\", nil]\n [\"8\", \"9\", \"10\", nil]\n\n in_groups(%w(1 2 3 4 5 6 7 8 9 10, 3, fill_with: ' ') {|group| p group}\n [\"1\", \"2\", \"3\", \"4\"]\n [\"5\", \"6\", \"7\", \" \"]\n [\"8\", \"9\", \"10\", \" \"]\n\n in_groups(%w(1 2 3 4 5 6 7), 3) {|group| p group}\n [\"1\", \"2\", \"3\"]\n [\"4\", \"5\"]\n [\"6\", \"7\"]", "throws": [ ], "return": "Or[ArrayOf[Any], Any]", "args": [ { "arg": "array", "type": "ArrayOf[Any]" }, { "arg": "number", "type": "Integer" }, { "arg": "opts", "type": "Ksplat[:fill_with? => Any]" }, { "arg": "block", "type": "Block" } ] } ], "links": [ ] }
Version data entries
28 entries across 28 versions & 1 rubygems