pipeline :: PipeSkipTail :: defaultinit
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