I may have found a buglet in the cols verb: it bombswith a type error on keyed tables with no values, suchas (a:())!(). Admittedly this is rather exotic but suchtables do arise when writing programmatic queries.-- O.L.
X-Mailer: Apple Mail (2.936)
that’s not a keyed table.
It is:q)keys (a:())!(),`aand in any cols is supposed to work with all tables.
In addition the type of (a:())!() is 99h and not 98h.And, again, what does this have to do with the cols error anyway?-- O.L.
X-Mailer: Apple Mail (2.936)
olivier,
as i said before, this is not keyed table.
it is dictionary with the keys being a table.
a keyed table is a dictionary that maps a table onto another table.
felix
Yes, 99h is the type of a dictionary, sorry; as far as type isconcernedkeyed tables are dictionaries and don’t have a more specific type.But keys does not work on plain dictionaries, only on tables, e,g.,“keys 1 2!3 4” gives a type error but “keys (a:())!()” works fine.So in that case cols is right but keys is wrong.-- O.L.