Next Advanced Programming Techniques Slide #48

Iterator Operations

 my $both = both($it1, $it2);
 $item = $both->(); # get next item from $it1 or $it2
 # Get rest of items in appropriate order
 while (defined($item = $both->())) {
 #...
 }


Next Copyright © 2000 M-J. Dominus

AltStyle によって変換されたページ (->オリジナル) /