Lasso Soft Inc. > Home

[Multi-key map->find]

LinkMulti-key map->find
AuthorKyle Jessup
CategoryUtility
Version9.x
LicensePublic Domain
Posted11 Oct 2013
Updated11 Oct 2013
More by this author...

Description

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.

Sample Usage

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

Source Code

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

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft