Map([1, 2; 3, 4; 5, 6])
[1, 3, 5]
[5, 3, 1]

[1 2]

[3 4]

[5 6]

Map([1, 4; 3, 16; 5, 36])
Map([1, -2; 3, -4; 5, -6])
[1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]
[1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]
-1
0
Map([;])
0
Map(Mat([2, 3]))
  ***   at top-level: mapget(M,7)
  ***                 ^-----------
  *** mapget: non-existent component in mapget: index not in map
  ***   at top-level: mapdelete(M,7)
  ***                 ^--------------
  *** mapdelete: non-existent component in mapdelete: index not in map
  ***   at top-level: Vec(M,1)
  ***                 ^--------
  *** Vec: incorrect type in gtovec (t_LIST).
  ***   at top-level: Vec(M,-1)
  ***                 ^---------
  *** Vec: incorrect type in gtovec (t_LIST).
  ***   at top-level: Map([1,2;2,3;1,3;1,4])
  ***                 ^----------------------
  *** Map: domain error in Map: x is not one-to-one
  ***   at top-level: mapdelete(1,1)
  ***                 ^--------------
  *** mapdelete: incorrect type in mapdelete (t_INT).
  ***   at top-level: mapdelete(L,1)
  ***                 ^--------------
  *** mapdelete: incorrect type in mapdelete (t_LIST).
  ***   at top-level: mapget(1,1)
  ***                 ^-----------
  *** mapget: incorrect type in mapget (t_INT).
  ***   at top-level: mapget(L,1)
  ***                 ^-----------
  *** mapget: incorrect type in mapget (t_LIST).
  ***   at top-level: mapisdefined(1,1)
  ***                 ^-----------------
  *** mapisdefined: incorrect type in mapisdefined (t_INT).
  ***   at top-level: mapisdefined(L,1)
  ***                 ^-----------------
  *** mapisdefined: incorrect type in mapisdefined (t_LIST).
  ***   too few arguments: mapput(1,1)
  ***                                ^-
  ***   too few arguments: mapput(L,1)
  ***                                ^-
  ***   at top-level: Map(1)
  ***                 ^------
  *** Map: incorrect type in Map (t_INT).
Total time spent: 25
