Tinderbox v10 Icon

Square brackets: dictionary keys with multiple values

Another case where a nested list might be used is where a dictionary key's value is a list:

$MyDictionary = {dog:terrier;boat:yawl;fruit:[apple;pear]};

$MyFruit = $MyDictionary[fruit][1]; 

returns 'pear', the second item in the (zero-indexed) list that is the value of key 'fruit'.