RosettaCodeData/Task/Associative-array-Iteration/Maple/associative-array-iteration-2.maple
2015-02-20 00:35:01 -05:00

7 lines
237 B
Text

> T := table( [ "a" = 1, "b" = 2, ("c","d") = 3 ] ):
> for i in indices( T ) do print( i, T[ op( i ) ] ) end:
["a"], 1
["b"], 2
["c", "d"], 3