RosettaCodeData/Task/Associative-array-Iteration/Maple/associative-array-iteration-2.maple

8 lines
237 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
> 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