As Roger points out,
  f=: f,a
should work as you desire.

additem_jmf_ was created before append worked in place. The limit still exists that the allocation for the mapped array must be large enough to contain the new element. If additem is still mentioned in the lab (and I assume it is) then the lab needs to be updated.

----- Original Message ----- From: "John Randall" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, October 29, 2006 8:22 PM
Subject: [Jprogramming] Appending to mapped files


I am looking for advice on appending to large mapped files (yes, I
confess, it's the Netflix data).

I have a name f mapped to a file containing a list of integers, and I want
to append a list a from memory.  I am essentially doing this by

for_i. a do.
additem_jmf_ 'f'
f=:i (_1) } f
end.

Is this what I am supposed to be doing, or is there a better way?

John


----------------------------------------------------------------------
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