> inc2 =: 2&+
> app2 =: 1 : '(] , x@{:@])'
> inc2 app2^:5[2 4 6Yup. That's what I was after. But can't it be done tacitly? (I'm thinking in terms of recursion cos that's what I'd do in Haskell: I'd define an infinite list starting from i, which is i followed by the infinite list starting from inc(i), then I'd lazily take the first few elements.) Adrian. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
