R.E. Boss wrote:
> As can be seen, realizing P using C. can be rather complicated
>
> On the other hand, it would be easy to realize C. with the help of P,
> as C. is a special case of P, applying P to the array of indexes.
>
> The conclusion seems to be that P is more primitive than C.
I'm not sure about that.
In general, it's often easier to express a simple concept in
terms of a complex one than the complex concept in terms of
the simple one.
So, if you are correct (and you might be -- I've not thought
much about the implementation issues surrounding C.), I think
you should develop a better argument.
Also note that you might not need C. at all, to implement P
R.E. Boss wrote:
> But what about other domains?
> a;('fad'; 'bc')P a=:(3 4 5 [EMAIL PROTECTED]){'abcdefghij'
Using J601ibeta:
P=:1 :'(a.,~;1&|.&.>m) {~ (a.,~;m) i. ]'
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm