NAME
Sidef::Object::Enumerator
DESCRIPTION
This class implements ...
SYNOPSIS
var obj = Enumerator(...)
METHODS
count
self.count(block)
Returns the
Aliases: count_by
each
self.
each
(block)
Returns the
first
self.first(n, block)
Returns the
grep
self.
grep
(block)
Returns the
Aliases: select
len
self.len
Returns the
Aliases: size, length
map
self.
map
(block)
Returns the
Aliases: collect
new
self.new
Returns the
Aliases: call
nth
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.
to_a
self.to_a
Returns the
while
self.
while
(block)
Returns the