Poperator[T: T]¶
iterate over a Seq descructively by pop
ing its elements
once has_next()
returns false
, the Seq is empty.
Nominee for the annual pony class-naming awards.
class ref Poperator[T: T] is
Iterator[T^] ref
Implements¶
- Iterator[T^] ref
Constructors¶
create¶
new ref create(
seq: Seq[T] ref)
: Poperator[T] ref^
Parameters¶
- seq: Seq[T] ref
Returns¶
- Poperator[T] ref^
empty¶
new ref empty()
: Poperator[T] ref^
Returns¶
- Poperator[T] ref^
Public Functions¶
has_next¶
fun ref has_next()
: Bool val
Returns¶
- Bool val
next¶
fun ref next()
: T^ ?
Returns¶
- T^ ?