Integer sequence: Difference between revisions
Content deleted Content added
added Fantom example |
|||
Line 211: | Line 211: | ||
<lang j> count=: (smoutput ] >:)^:_</lang> |
<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). |
|||
⚫ | |||
⚫ | |||
<lang j> count=: (smoutput ] >:)@x:^:_</lang> |
<lang j> count=: (smoutput ] >:)@x:^:_</lang> |
||