sublist

Find where one list lies inside another

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!!!

sublist v1.0.0

Find where one list lies inside another

Authors

  • yabobay

License

LGPL-3.0-only

Dependencies

Test Dependencies

Provides

  • sublist

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.