Sha256: 512c31f0699b44bf8941dbe6aec800fa46b59d4bf887896a13dbbf2618136d80
Contents?: true
Size: 547 Bytes
Versions: 1
Compression:
Stored size: 547 Bytes
Contents
# tresse A poorly thought out and stupid each+map+reduce contraption. ## use ``` require 'tresse' r = Tresse::Group.new('test0') .append { 'b' } .append { 'a' } .collect { |e| e * 2 } r # => %[ aa bb ] # or # => %[ bb aa ] ``` ```ruby require 'tresse' r = Tresse::Group.new('test0') .append { [ 'a' ] } .append { [ 'c' ] } .append { [ 'b' ] } .each { |e| e[0] = e[0] * 2 } .inject([]) { |a, e| a << e.first; a.sort } r # => %w[ aa bb cc ] ``` ## license MIT, see [LICENSE.txt](LICENSE.txt)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tresse-0.1.0 | README.md |