Very nice - and has the (probable) advantage of producing an error if
NEW contains a key not in MASTER (my data preening concern) -
(NEW, 'LiteralX';0;1;2) [`(i.&:(0&{"1)~)`] } MASTER
|index error
| (NEW,'LiteralX';0;1;2) [`(i.&:(0&{"1)~)`]}MASTER
Thanks for pointing out what is nicely documented (but unassimilated
by me) in JD amend entry.
At 23:17 -0700 2008/04/12, Oleg Kobchenko wrote:
Previous was relational Distinct N or M.
It could be relational Union of N or M less N.
In J, you can selectively update new records,
which preserves order
NEW [`(i.&:(0&{"1)~)`] } MASTER
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm