Sha256: 776104c14ac75fdf1be23b41987af0077be6d87bbbda383974123049d1b3a9de

Contents?: true

Size: 1.27 KB

Versions: 28

Compression:

Stored size: 1.27 KB

Contents

{
  "schema_type": "object",
  "schema_version": "1.0",
  "name": "in_groups_of",
  "path": "packages/ree_array/package/ree_array/functions/in_groups_of.rb",
  "mount_as": "fn",
  "class": "ReeArray::InGroupsOf",
  "factory": null,
  "methods": [
    {
      "doc": "Splits or iterates over the array in groups of size +number+,\npadding any remaining slots with +fill_with+ unless it is +false+.\n\n  in_groups_of(%w(1 2 3 4 5 6 7 8 9 10), 3, fill_with: nil) {|group| p group}\n  [\"1\", \"2\", \"3\"]\n  [\"4\", \"5\", \"6\"]\n  [\"7\", \"8\", \"9\"]\n  [\"10\", nil, nil]\n\n  in_groups_of(%w(1 2 3 4 5), 2, fill_with: ' ') {|group| p group}\n  [\"1\", \"2\"]\n  [\"3\", \"4\"]\n  [\"5\", \" \"]\n\n  in_groups_of(%w(1 2 3 4 5), 2) {|group| p group}\n  [\"1\", \"2\"]\n  [\"3\", \"4\"]\n  [\"5\"]",
      "throws": [
        "ArgumentError"
      ],
      "return": "Or[ArrayOf[Any], ArrayOf[ArrayOf[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

Version Path
ree_lib-1.0.32 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.31 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.30 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.29 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.28 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.27 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.26 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.24 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.23 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.22 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.21 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.20 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.19 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.18 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.17 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.16 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.15 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.14 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.13 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json
ree_lib-1.0.12 lib/ree_lib/packages/ree_array/schemas/ree_array/functions/in_groups_of.schema.json