RosettaCodeData/Task/Van-Eck-sequence/J/van-eck-sequence-3.j

3 lines
128 B
Plaintext

next =. <:@:# - }: i: {: NB. Next term of the sequence
VanEck=. (, next)^:(]`0:) f. NB. Appending terms and fixing the verb