Class: Functional::Collect

Inherits:
Base show all
Defined in:
lib/functional.rb

Direct Known Subclasses

Map

Instance Attribute Summary

Attributes inherited from Base

#caller, #exe, #next

Instance Method Summary collapse

Methods inherited from Base

#base_fun, #clean, #end, #initialize, #to_proc

Constructor Details

This class inherits a constructor from Functional::Base

Instance Method Details

#collect_fun(*a) ⇒ Object Also known as: call



85
86
87
# File 'lib/functional.rb', line 85

def collect_fun *a
	@next.call *@exe.call( *a)
end