https://code.jsoftware.com/wiki/Essays/Progressive_Index-Of

A good starting point. You can use it directly, given that x -. y is the same as x #~ -. x e. y, and x e. y is (#y) ~: y i. x.

On Mon, 5 Sep 2022, Richard Donovan wrote:

I need a verb similar to dyadic -. but which only removes items which are one 
for one specified by y.
I want verb t such that...

  'elect' t 'e'
lect
  'elected' t 'ee'
lcted
  'elected' t 'eet'
lced
'elected' t 'dec'
lete

That is, the right argument is taken item by item and then removes the first 
matching element remaining from the left argument.

Any help in creating this dyad is most welcome.

Thanks

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

Reply via email to