HP Forums
Problem with table - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Problem with table (/thread-17392.html)



Problem with table - maozhitao - 08-25-2021 02:02 AM

#cas
tabletest()
begin
d:=table("a"=1,"b"=2)
a:="a"
print(a+"="+d["a"]) //display a=1
print(a+"="+d[a]) //display a=0,I wish it's "a=0".
end;


RE: Problem with table - roadrunner - 08-26-2021 12:37 PM

Table is not listed in the prime catalog, perhaps it's not fully implemented yet. It works as expected in xcas.