Skip to main content
⍣=, -2 bytes
Source Link
RubenVerg
  • 954
  • 4
  • 17

Dyalog APL, 1212 10 bytes

-2 thanks to Adám

{⎕←2×⍵}⍣{0}1⍣=1

Explanation:

  • 1 starting from one,
  • ⍣{0}⍣= foreveruntil the last result and the current one are equal (never, so infinite loop)
  • {⎕←2×⍵} double it at each iteration, printing it

Dyalog APL, 12 bytes

{⎕←2×⍵}⍣{0}1

Explanation:

  • 1 starting from one,
  • ⍣{0} forever
  • {⎕←2×⍵} double it at each iteration, printing it

Dyalog APL, 12 10 bytes

-2 thanks to Adám

{⎕←2×⍵}⍣=1

Explanation:

  • 1 starting from one,
  • ⍣= until the last result and the current one are equal (never, so infinite loop)
  • {⎕←2×⍵} double it at each iteration, printing it
Source Link
RubenVerg
  • 954
  • 4
  • 17

Dyalog APL, 12 bytes

{⎕←2×⍵}⍣{0}1

Explanation:

  • 1 starting from one,
  • ⍣{0} forever
  • {⎕←2×⍵} double it at each iteration, printing it