Sha256: e19b92d02f879b2d19312ee8e980ccbbec757653ad6c38b48dd04187e986b791
Contents?: true
Size: 936 Bytes
Versions: 71
Compression:
Stored size: 936 Bytes
Contents
{ "schema_type": "object", "schema_version": "1.1", "name": "split_by", "path": "packages/ree_array/package/ree_array/functions/split_by.rb", "mount_as": "fn", "class": "ReeArray::SplitBy", "factory": null, "methods": [ { "doc": "Divides the array into one or more subarrays based on a delimiting +value+\nor the result of an optional block.\n\nsplit([1, 2, 3, 4, 5], 3) # => [[1, 2], [4, 5]]\nsplit((1..10).to_a) { |i| i % 3 == 0 } # => [[1, 2], [4, 5], [7, 8], [10]]", "throws": [ ], "return": "ArrayOf[Any]", "args": [ { "arg": "array", "arg_type": "req", "type": "ArrayOf[Any]" }, { "arg": "value", "arg_type": "opt", "type": "Any" }, { "arg": "block", "arg_type": "block", "type": "Block" } ] } ], "links": [ ] }
Version data entries
71 entries across 71 versions & 1 rubygems