Amelia Stein wrote:
> Thank you so much. This time it worked.  I'm sure everyone is laughing
> their
> heads of at how long it took me to understand, but I got it now : )  I
> really do appreciate the help.
>

Amelia:

I am glad you got it to work.  I know how difficult it is to get this
kind of thing, especially if you are coming from another paradigm.

I do agree that if you have to emulate a while not end of file loop in
J, you are going to run into problems.  The analog of your assignment
in J would be to read the values from a file (people often produce
external data by hand or from programs in CSV files).  If you were
doing this using arrays in C, you would have to specify a maximum
number of inputs (30 in your case), size your arrays accordingly, and
keep track of how many items you actually used.  In J, you would not
have to specify the array size, nor keep track of how many inputs
there were, and your code would be exactly the same if there were 3 or
3000000 inputs.  In the J community, this is seen as an advantage.

Best wishes,

John


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

Reply via email to