Integer sequence: Difference between revisions

Added Q solution.
(Add min)
(Added Q solution.)
Line 1,689:
 
Pythons integers are of arbitrary large precision and so programs would probably keep going until OS or hardware system failure.
 
=={{header|Q}}==
{{trans|K}}
 
Using converge (the <tt>\</tt> adverb):
<lang q>({-1 string x; x+1}\) 1</lang>
 
Using <tt>while</tt>:
<lang q>i:0; while[1;-1 string (i+:1)]</lang>
 
=={{header|R}}==
Anonymous user