StructKeyList

Extracts keys from a struct.

StructKeyList( structure [, delimiter ] )

Returns: String

Argument Description Default
structure
struct, required

Structure from which to extract a list of keys.

delimiter
string, optional

Character that separates keys in list. Default: comma.

,

Examples

Member Function

animals = {
	cow: "moo",
	pig: "oink",
	cat: "meow",
	bird: "chirp"
};
// animals.keyList()
animalList = animals.keyList();
echo(animalList);

Non-Member Function

animals = {
	cow: "moo",
	pig: "oink",
	cat: "meow",
	bird: "chirp"
};
// StructKeyList(animals)
animalList = StructKeyList(animals);
echo(animalList);

See also