Let's say you are importing a vector from OEIS:

V=: 1, -1, -1, 0, -1, 1, -1, 0

Now, use find/replace to replace those - characters with _ characters:

V=: 1, _1, _1, 0, _1, 1, _1, 0

Next, try to use find/replace to eliminate the commas:

V=: 1_ _1_ _1_ 0_ _1_ 1_ _1_ 0

If you catch jqt re-inserting the _ that you deleted from the replace
pattern, you can temporarily delete it again and can get the right
result:

V=: 1 _1 _1 0 _1 1 _1 0

The problems here are two:

(1) That _ character keeps re-appearing in the replace pattern, and

(2) undo only reverts a single replacement - it's not atomic even
though the UI action you are trying to revert seemed to be an atomic
action. If you had a large enough of a set of replacements you can
forget about undo being a useful action.

FYI,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to