Skip to content

Instantly share code, notes, and snippets.

@kjessup
Created April 3, 2014 20:02
Show Gist options
  • Save kjessup/9961780 to your computer and use it in GitHub Desktop.
Save kjessup/9961780 to your computer and use it in GitHub Desktop.
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.
define map->find(one, two, ...)::staticarray =>
    (with key in (:#one, #two) + #rest or (:)
    select .find(#key))->asStaticArray
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment