Anonymous user
Integer sequence: Difference between revisions
m
→{{header|D}}: start from 1
m (→{{header|D}}: + D) |
m (→{{header|D}}: start from 1) |
||
Line 55:
void integerSequence(T)() if(is(T == BigInt) || isIntegral!T ) {
static if(is(T == BigInt)) {
BigInt now = BigInt(
BigInt max = BigInt(
} else {
T now =
T max = T.max ;
}
Line 91:
}</lang>
=={{header|Haskell}}==
<lang haskell>mapM_ print [1..]</lang>
|