Raul,
I realise that my questions are somewhat awkward and I'm doing things
that are way too complicated for me, but that's what I like about them
so sorry if I was unclear.
The requirement is that I would like to substitute members of x with
those of y in a strict fashion, where x may be of any shape or type.
* The simplest case, as you stated: 1 2 (1&{::@] {~ 0&{::@] i. [) (2
1;4 9)
* But x may be boxed and y elements of different types: (1;2) (] {~
0&{::@] >:@i.>@[) (2 1;'a';9)
* Also, the substitution being strict, it should respect syntactic
rules: 1 2 find (2 1;'';9) NB. should fail, as 9 '' yields a syntax
error
I hope I am making more sense?
> if that's doing what I think it's doing, it would be better handled
by omitting the associated keys from the data structure.
Can you explain a bit more of what you mean by that?
Thank you very much for taking the time to help me!
Raoul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm