Syntax

	$expr.size()

Description

The number of elements in the set/list expr or the number of assignments in the dictionary expr.

Parameter

Name Type Description Mandatory Default
expr Businss object/set An expression whose size is to be measured. Can be a list, set or even a dictionary. yes

Return value

Type: Number

The number of elements of the given set/list expr or the number of mappings in the dictionary. expr.

Examples

Set of list elements

	[1, 2, 3].size()

Output: 3

Set of dictionary mappings

	{
  dict = {
    "all": "alle",
    "some": "manche",
    "none": "keine"
  };

  $dict.size()
}

Output: 3