Skip to main content
-1 character
Source Link
manatwork
  • 20.9k
  • 5
  • 53
  • 82

dc, 13 characters

Thanks to

  • Daemon for reusing stack depth instead of getting it again, to use shorter operator (-1 character)
[zpdA0>x]dsxx

Try it online!

dc, 14 characters

Thanks to

  • Digital Trauma for the twist in using the stack depth efficiently (-2 characters)
[zpzA0!<m]dsmx

Try it online!

dc, 16 characters

0[pz+dA0>i]dsixp

Sample run:

bash-5.0$ dc -e '0[pz+dA0>i]dsixp' | head
0
1
2
3
4
5
6
7
8
9

Try it online!

dc, 13 characters

[zpdA0>x]dsxx

Try it online!

dc, 14 characters

Thanks to

  • Digital Trauma for the twist in using the stack depth efficiently (-2 characters)
[zpzA0!<m]dsmx

Try it online!

dc, 16 characters

0[pz+dA0>i]dsixp

Sample run:

bash-5.0$ dc -e '0[pz+dA0>i]dsixp' | head
0
1
2
3
4
5
6
7
8
9

Try it online!

dc, 13 characters

Thanks to

  • Daemon for reusing stack depth instead of getting it again, to use shorter operator (-1 character)
[zpdA0>x]dsxx

Try it online!

dc, 14 characters

Thanks to

  • Digital Trauma for the twist in using the stack depth efficiently (-2 characters)
[zpzA0!<m]dsmx

Try it online!

dc, 16 characters

0[pz+dA0>i]dsixp

Sample run:

bash-5.0$ dc -e '0[pz+dA0>i]dsixp' | head
0
1
2
3
4
5
6
7
8
9

Try it online!

dc, 1413 characters

[zpdA0>x]dsxx

Try it online!

dc, 14 characters

Thanks to

  • Digital Trauma for the twist in using the stack depth efficiently (-2 characters)
[zpzA0!<m]dsmx

Try it online!

dc, 16 characters

0[pz+dA0>i]dsixp

Sample run:

bash-5.0$ dc -e '0[pz+dA0>i]dsixp' | head
0
1
2
3
4
5
6
7
8
9

Try it online!

dc, 14 characters

Thanks to

  • Digital Trauma for the twist in using the stack depth efficiently (-2 characters)
[zpzA0!<m]dsmx

Try it online!

dc, 16 characters

0[pz+dA0>i]dsixp

Sample run:

bash-5.0$ dc -e '0[pz+dA0>i]dsixp' | head
0
1
2
3
4
5
6
7
8
9

Try it online!

dc, 13 characters

[zpdA0>x]dsxx

Try it online!

dc, 14 characters

Thanks to

  • Digital Trauma for the twist in using the stack depth efficiently (-2 characters)
[zpzA0!<m]dsmx

Try it online!

dc, 16 characters

0[pz+dA0>i]dsixp

Sample run:

bash-5.0$ dc -e '0[pz+dA0>i]dsixp' | head
0
1
2
3
4
5
6
7
8
9

Try it online!

added 377 characters in body
Source Link
manatwork
  • 20.9k
  • 5
  • 53
  • 82

dc, 1614 characters

Thanks to

  • Digital Trauma for the twist in using the stack depth efficiently (-2 characters)
[zpzA0!<m]dsmx

Try it online!

dc, 16 characters

0[pz+dA0>i]dsixp

Sample run:

bash-5.0$ dc -e '0[pz+dA0>i]dsixp' | head
0
1
2
3
4
5
6
7
8
9

Try it online!

dc, 16 characters

0[pz+dA0>i]dsixp

Sample run:

bash-5.0$ dc -e '0[pz+dA0>i]dsixp' | head
0
1
2
3
4
5
6
7
8
9

Try it online!

dc, 14 characters

Thanks to

  • Digital Trauma for the twist in using the stack depth efficiently (-2 characters)
[zpzA0!<m]dsmx

Try it online!

dc, 16 characters

0[pz+dA0>i]dsixp

Sample run:

bash-5.0$ dc -e '0[pz+dA0>i]dsixp' | head
0
1
2
3
4
5
6
7
8
9

Try it online!

Post Undeleted by manatwork
deleted 170 characters in body
Source Link
manatwork
  • 20.9k
  • 5
  • 53
  • 82
Loading
Post Deleted by manatwork
Source Link
manatwork
  • 20.9k
  • 5
  • 53
  • 82
Loading