Perhaps you should study the primer first
http://www.jsoftware.com/jwiki/Primer/Contents 

R.E. Boss


-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Sean McGowan
Verzonden: donderdag 23 maart 2006 16:44
Aan: Programming forum
Onderwerp: [Jprogramming] Creating an index from a list item passed to a
tacitfunction

Hi there,

 

I'm trying to create an index the size of the first element passed into a
tacit function

but the index is always 0. I have the following:

 

   seq =: i. 0:{]

   seq 10 0 1

0

 

Shouldn't this be:

 

   seq =: i. 0:{]

   seq 10 0 1

0 1 2 3 4 5 6 7 8 9

 

?

 

Sean

 

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