--- title: "get key(s) from map()" slug: "basic-get-keys-from-map" updated: 2026-08-11T12:56:43Z published: 2026-08-11T12:56:43Z canonical: "docs.lobstersoftware.com/basic-get-keys-from-map" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # get key(s) from map() This function creates a comma-separated list of the keys contained in map **a**. The keys will be sorted alphabetically in a case-insensitive way. A separator between the keys can be specified in **b**. Optionally, you can return a key at position **c** instead of the whole list. ## Parameters | Parameter | Description | | --- | --- | | a | (optional) Name of the map. Default: "default". | | b | (optional) Separator between keys. Default: ",". | | c | (optional) Position in the key list that should be returned (starts at "1"). Use -"1" for the [iteration-level()](/v1/docs/en/basic-iteration-level). | ## Examples Given is a map "myMap" containing the key-value pairs {1key=val1, Key1=val2, key2=val3}. | Parameter a | Parameter b | Parameter c | Result | | --- | --- | --- | --- | | myMap | | | 1key,Key1,key2 | | myMap | | 2 | Key1 | | myMap | # | | 1key#Key1#key2 | | myOtherMap | | | |