I have this
zUr=: (2$:1 0,~1+]) :((>:@[$:],1,0$~1={)`([EMAIL PROTECTED])@.([>[EMAIL
PROTECTED])) M.
zUr 7
1 0 1 1 0 1 0 1 1 0 1 1 0
I want to do the same with:
zUr2=: (2$:1 0,~1+]) : ((>:@[$:],1,0$~1={)^:(<:{.))
zUr2 7
8 1 0 1 1 0 1 0 1 1 0 1 1 0
Could the beheading be included?
TIA
=@@i
p.s. yes it's the rabbit sequence
and yes I have other generating verbs too :-)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm