Post Reply 
Template for a table editor [▣=▣ ].
04-17-2019, 03:10 PM
Post: #2
RE: Template for a table editor [▣=▣ ].
(04-13-2019 12:26 PM)compsystems Wrote:  Hello

There is a very useful data type TABLE, it works in a similar way to the Python DICTIONARY, unlike a matrix that addresses each position by means of a "coordinate" (rows, columns), a table is addressed by a label that can be a number, a string of characters or a coordinate.

The TABLE editor is similar to the matrix editor. Simply for each position there would be two entries one for the label and one for the content.

The template for the table editor will be included in an icon next to the rest of the templates (key C / templates)

Examples

tbl1:= table( (0,0)=[9,8,7], 3=-10,"b"=20,"c"=30,"d"=40,"a"=10) [enter] returns

table(
(0,0)=[9,8,7],
3 = -10,
"a" = 10,
"b" = 20,
"c" = 30,
"d" = 40
)

tbl1["a"] [enter] returns 10
tbl1[3] [enter] returns -10
tbl1[(0,0)] [enter] returns [9,8,7]

Supposedly the TABLE command is buggy and will be deprecated at some point in the future. I can't find the thread right now but when I saw the TABLE command I got all excited until I read that it will be going away.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Template for a table editor [▣=▣ ]. - toml_12953 - 04-17-2019 03:10 PM



User(s) browsing this thread: 1 Guest(s)