Integer sequence: Difference between revisions

(added Fantom example)
Line 211:
<lang j> count=: (smoutput ] >:)^:_</lang>
 
The above works with both fixed sized integers and floating point numbers (fixed sized integers are automatically promoted to floating point, if they overflow), but also works with extended precision integers (which will not overflow, unless they get so large that they cannot be represented in memory, but that should exceed lifetime of the universe, let alone lifetime of the computer).
This adds support for extended precision and will display integers to ∞ (or at least until the machine is turned off or interrupted).
 
This adds support for extended precision (in that it converts non-extended precision arguments to extended precision arguments) and will display integers to ∞ (or at least until the machine is turned off or interrupted or crashes).
<lang j> count=: (smoutput ] >:)@x:^:_</lang>
 
6,962

edits