Integer sequence: Difference between revisions

m
→‎{{header|D}}: start from 1
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(01) ;
BigInt max = BigInt(-10) ;
} else {
T now = T.min1 ;
T max = T.max ;
}
Line 91:
 
}</lang>
 
=={{header|Haskell}}==
<lang haskell>mapM_ print [1..]</lang>
Anonymous user