pipeline :: PipeSkipTail :: _length
pipeline :: PipeSkipTail :: defaultinit
pipeline :: PipeSkipTail :: length
pipeline :: PipeSkipTail :: length=
pipeline $ PipeSkipTail :: SELF
Type of this instance, automatically specialized in every classpipeline $ PipeSkipTail :: init
pipeline :: PipeSkipTail :: _length
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
pipeline :: PipeSkipTail :: defaultinit
core :: Object :: defaultinit
core :: Iterator :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
pipeline :: PipeSkipTail :: length
pipeline :: PipeSkipTail :: length=
core :: Object :: native_class_name
The class name of the object in CString format.Iterator
whose elements are sorted by the function
core :: Object :: output_class_name
Display class name on stdout (debug only).
private class PipeSkipTail[E]
super Iterator[E]
var source: Iterator[E]
var length: Int
var lasts = new List[E]
init
do
var lasts = self.lasts
while source.is_ok and lasts.length < length do
lasts.push(source.item)
source.next
end
end
redef fun is_ok do return source.is_ok
redef fun item do return lasts.first
redef fun next
do
lasts.shift
lasts.push(source.item)
source.next
end
end
lib/pipeline/pipeline.nit:464,1--492,3