Integer sequence: Difference between revisions

Line 159:
 
<lang haskell>(putStr . unlines . map show) [1..]</lang>
 
=={{header|J}}==
The following will count forever but once the 32-bit (or 64-bit depending on J engine version) limit is reached, the results will be reported as floating point values.
<lang j> count=: (smoutput ] >:)^:_</lang>
 
This adds support for extended precision and will return integers to ∞.
<lang j> count=: (smoutput ] >:)@x:^:_</lang>
 
=={{header|Java}}==
892

edits