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

3 lines
128 B
Text
Raw Permalink Normal View History

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