Skip to main content
added 3 characters in body
Source Link
Bergi
  • 1k
  • 7
  • 13

Haskell, 2021 bytes

main=mapMmain=mapM_ print[1..]

Arbitrary-precision integers and infinite lists make this easy :-)

Luckily mapMmapM_ is in the Prelude. If Data.Traversable was as well, we even could shrink it to 1819 bytes:

main=for[1main=for_[1..]print

Haskell, 20 bytes

main=mapM print[1..]

Arbitrary-precision integers and infinite lists make this easy :-)

Luckily mapM is in the Prelude. If Data.Traversable was as well, we even could shrink it to 18 bytes:

main=for[1..]print

Haskell, 21 bytes

main=mapM_ print[1..]

Arbitrary-precision integers and infinite lists make this easy :-)

Luckily mapM_ is in the Prelude. If Data.Traversable was as well, we even could shrink it to 19 bytes:

main=for_[1..]print
added 135 characters in body
Source Link
Bergi
  • 1k
  • 7
  • 13

Haskell, 20 bytes

main=mapM print[1..]

Arbitrary-precision integers and infinite lists make this easy :-)

Luckily mapM is in the Prelude. If Data.Traversable was as well, we even could shrink it to 18 bytes:

main=for[1..]print

Haskell, 20 bytes

main=mapM print[1..]

Arbitrary-precision integers and infinite lists make this easy :-)

Haskell, 20 bytes

main=mapM print[1..]

Arbitrary-precision integers and infinite lists make this easy :-)

Luckily mapM is in the Prelude. If Data.Traversable was as well, we even could shrink it to 18 bytes:

main=for[1..]print
Source Link
Bergi
  • 1k
  • 7
  • 13

Haskell, 20 bytes

main=mapM print[1..]

Arbitrary-precision integers and infinite lists make this easy :-)