Method: Functional#cons
- Defined in:
- lib/functional.rb
#cons(n, &exe) ⇒ Object
441 442 443 444 |
# File 'lib/functional.rb', line 441 def cons n, &exe push Cons.new( n) block_given? ? self.collect( &exe) : self end |
441 442 443 444 |
# File 'lib/functional.rb', line 441 def cons n, &exe push Cons.new( n) block_given? ? self.collect( &exe) : self end |