|Posted||11 Oct 2013|
|Updated||11 Oct 2013|
|More by this author...|
This is an additional implimentation of map->find which accepts two or more keys. Each key is sought for in the map and a staticarray is returned containing each result.
local(m = map(1=1,2=2,3=3,4=4,5=5,6=6)) local(two, five, one) = #m->find(2, 5, 1) #two ' ' #five ' ' #one
Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
define map->find(one, two, ...)::staticarray => (with key in (:#one, #two) + #rest or (:) select .find(#key))->asStaticArray