Sha256: 95e49f3bf79e1f303a47745bcd2d2353add37cebb8165929de71622fb6a46a4d
Contents?: true
Size: 366 Bytes
Versions: 2
Compression:
Stored size: 366 Bytes
Contents
## Array#divide require 'facets/array/divide' Divide into sub arrays at elemetns matching given pattern r = ['a1','b1','a2','b2'].divide(/^a/) r.assert == [['a1','b1'],['a2','b2']] r = ['a1','b1','a2','b2'].divide(/^b/) r.assert == [['a1'],['b1','a2'],['b2']] r = ['a1','b1','a2','b2'].divide(/c/) r.assert = [['a1','b1','a2','b2']]
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
facets-glimmer-3.2.0 | demo/core/array/divide.md |
facets-3.1.0 | demo/core/array/divide.md |