Sha256: c42b25c0cbeb48712287293a2551db4912f5a514c21f9a9d88f12813a4bd285d
Contents?: true
Size: 301 Bytes
Versions: 2
Compression:
Stored size: 301 Bytes
Contents
## Array#delete_unless require 'facets/array/delete_unless' The method `#delete_unless` is the inverse of `#delete_if`. a = [1,2,3] a.delete_unless{ |e| e == 2 } a.assert == [2] [1,2,3].delete_unless{ |x| x < 2 }.assert == [1] [1,2,3].delete_unless(&:even?).assert == [2]
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
facets-glimmer-3.2.0 | demo/core/array/delete_unless.md |
facets-3.1.0 | demo/core/array/delete_unless.md |