Sidef::Object::Enumerator
This class implements ...
var obj = Enumerator(...)
self.count(block)
Returns the
Aliases: count_by
self.each(block)
self.first(n, block)
self.grep(block)
Aliases: select
self.len
Aliases: size, length
self.map(block)
Aliases: collect
self.new
Aliases: call
e.nth(n) e.nth(n, {...})
Returns the n-th term.
An optional block can be given to filter out terms, counting only the terms for which the block returns a true value.
self.to_a
self.while(block)
To install Sidef, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sidef
CPAN shell
perl -MCPAN -e shell install Sidef
For more information on module installation, please visit the detailed CPAN module installation guide.