Skip to main content
deleted 58 characters in body
Source Link
emanresu A
  • 44.4k
  • 5
  • 101
  • 240

Pushy, 4 bytes

Non-competing as the language postdates the challenge.

:Lh_

Try it online!

This works by building the stack up to the final line, step-by-step, and printing the stages:

:    \ Input times do (this consumes input):
Lh   \  Push stack length + 1
_    \  Print stack items, space separated.

Pushy, 4 bytes

Non-competing as the language postdates the challenge.

:Lh_

Try it online!

This works by building the stack up to the final line, step-by-step, and printing the stages:

:    \ Input times do (this consumes input):
Lh   \  Push stack length + 1
_    \  Print stack items, space separated.

Pushy, 4 bytes

:Lh_

Try it online!

This works by building the stack up to the final line, step-by-step, and printing the stages:

:    \ Input times do (this consumes input):
Lh   \  Push stack length + 1
_    \  Print stack items, space separated.
deleted 382 characters in body
Source Link
FlipTack
  • 14.7k
  • 3
  • 54
  • 101

Pushy, 54 bytes

Non-competing as the language postdates the challenge.

:&1+_Lh_

Try it online!Try it online!

This works by building the stack up to the final line, step-by-step, and printing the stages:

:       \ Input times do (this consumes input):
 &      \   Copy the top item (does nothing first time, stack is empty)
  1+ Lh   \   Add one to it, or if thePush stack is empty,length push+ 1 to begin the sequence
    _   \ \  Print the stack items, space- separated.

Ordinarily we would use h instead of 1+, but here we need 1+ so 1 is pushed when the stack is empty.

Pushy, 5 bytes

Non-competing as the language postdates the challenge.

:&1+_

Try it online!

This works by building the stack up to the final line, step-by-step, and printing the stages:

:       \ Input times do (consumes input):
 &      \   Copy the top item (does nothing first time, stack is empty)
  1+    \   Add one to it, or if the stack is empty, push 1 to begin the sequence
    _   \   Print the stack items, space-separated.

Ordinarily we would use h instead of 1+, but here we need 1+ so 1 is pushed when the stack is empty.

Pushy, 4 bytes

Non-competing as the language postdates the challenge.

:Lh_

Try it online!

This works by building the stack up to the final line, step-by-step, and printing the stages:

:    \ Input times do (this consumes input):
Lh   \  Push stack length + 1
_    \  Print stack items, space separated.
added 478 characters in body
Source Link
FlipTack
  • 14.7k
  • 3
  • 54
  • 101

Pushy, 5 bytes

Non-competing as the language postdates the challenge.

:&1+_

Try it online!

This works by building the stack up to the final line, step-by-step, and printing the stages:

:       \ Input times do (consumes input):
 &      \   Copy the top item (does nothing first time, stack is empty)
  1+    \   Add one to it, or if the stack is empty, push 1 to begin the sequence
    _   \   Print the stack items, space-separated.

Ordinarily we would use h instead of 1+, but here we need 1+ so 1 is pushed when the stack is empty.

Pushy, 5 bytes

Non-competing as the language postdates the challenge.

:&1+_

Try it online!

Pushy, 5 bytes

Non-competing as the language postdates the challenge.

:&1+_

Try it online!

This works by building the stack up to the final line, step-by-step, and printing the stages:

:       \ Input times do (consumes input):
 &      \   Copy the top item (does nothing first time, stack is empty)
  1+    \   Add one to it, or if the stack is empty, push 1 to begin the sequence
    _   \   Print the stack items, space-separated.

Ordinarily we would use h instead of 1+, but here we need 1+ so 1 is pushed when the stack is empty.

Source Link
FlipTack
  • 14.7k
  • 3
  • 54
  • 101
Loading