On 10/27/07, Raul Miller <[EMAIL PROTECTED]> wrote:
> On 10/27/07, david alis <[EMAIL PROTECTED]> wrote:
> Note that you use a value 'aa' here, which you do not define in
> your message.
Rephrasing the saying ...
cut in leasure, paste in haste - sorry about that..
data =: (?~?)&.> 1e5#10
foo_with_M =: 3 : 0 M.
n =:?1e5
data =:(<>:n{::aa)n}data
n;n{::data
)
What is happening is that repeated invocations of foo_with_M produce
identical results when successive arguments are the same.
In this example the value of n doesn't change between invocations.
Is this correct?
foo_with_M "0 [1 1 1 2 2 2 3 3
+-----+-------------+
|16914|3 1 2 4 |
+-----+-------------+
|16914|3 1 2 4 |
+-----+-------------+
|16914|3 1 2 4 |
+-----+-------------+
|85206|1 6 5 7 4 3 2|
+-----+-------------+
|85206|1 6 5 7 4 3 2|
+-----+-------------+
|85206|1 6 5 7 4 3 2|
+-----+-------------+
|34433|2 1 |
+-----+-------------+
|34433|2 1 |
+-----+-------------+
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm