sublist
sublist::index
determines whether one list can be found inside another. if it can, it
returns the location where it was found. otherwise, returns Nil
.
use sublist;
say sublist::index(<d e f>, <a b c d e f g>); # should print 3
enjoy!!!
determines whether one list can be found inside another. if it can, it
returns the location where it was found. otherwise, returns Nil
.
use sublist;
say sublist::index(<d e f>, <a b c d e f g>); # should print 3
enjoy!!!
Find where one list lies inside another
LGPL-3.0-only
Resoures
Learning
The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.