Skip to main content
added 38 characters in body
Source Link
Tbw
  • 3.1k
  • 4
  • 29

Uiua 0.10.0, 43 bytes

0=.⇡0¬⊚

-1 byte thanks to @noodle man

Returns a list of 1s then a 0.

Other solutions

Just to showcase other features in Uiua and different options for output.

0=.⇡
0↯:1
⇌±⇡+1
>⇡+1.
¬⋯ⁿ:2
⇌[@0⍥@1]
0⍥&p‿1
0⍥1      #cannot be bound to a function name

Uiua 0.10.0, 4 bytes

0=.⇡

Returns a list of 1s then a 0.

Other solutions

Just to showcase other features in Uiua and different options for output.

0↯:1
⇌±⇡+1
>⇡+1.
¬⋯ⁿ:2
⇌[@0⍥@1]
0⍥&p‿1
0⍥1      #cannot be bound to a function name

Uiua 0.10.0, 3 bytes

0¬⊚

-1 byte thanks to @noodle man

Returns a list of 1s then a 0.

Other solutions

Just to showcase other features in Uiua and different options for output.

0=.⇡
0↯:1
⇌±⇡+1
>⇡+1.
¬⋯ⁿ:2
⇌[@0⍥@1]
0⍥&p‿1
0⍥1      #cannot be bound to a function name
added 22 characters in body
Source Link
Tbw
  • 3.1k
  • 4
  • 29

Uiua 0.10.0, 4 bytes

±⇡+10=.⇡

Try on Uiua Pad!

Returns a list of 1s and 0sthen a 0.

8 bytesOther solutions

⇌[@0⍥@1]

Returns a stringJust to showcase other features in Uiua and different options for output.

6 bytes

0↯:1
⇌±⇡+1
>⇡+1.
¬⋯ⁿ:2
⇌[@0⍥@1]
0⍥&p‿1
0⍥1      #cannot be bound to a function name

Prints the 1s then puts 0 on stack after.

Uiua 0.10.0, 4 bytes

±⇡+1

Try on Uiua Pad!

Returns a list of 1s and 0s.

8 bytes

⇌[@0⍥@1]

Returns a string.

6 bytes

0⍥&p‿1

Prints the 1s then puts 0 on stack after.

Uiua 0.10.0, 4 bytes

0=.⇡

Returns a list of 1s then a 0.

Other solutions

Just to showcase other features in Uiua and different options for output.

0↯:1
⇌±⇡+1
>⇡+1.
¬⋯ⁿ:2
⇌[@0⍥@1]
0⍥&p‿1
0⍥1      #cannot be bound to a function name
deleted 1 character in body
Source Link
Tbw
  • 3.1k
  • 4
  • 29

Uiua 0.10.0, 54 bytes

>⇡+1.±⇡+1

Try on Uiua Pad!Try on Uiua Pad!

Returns a list of 1s and 0s.

8 bytes

⇌[@0⍥@1]

Returns a string.

6 bytes

0⍥&p‿1

Prints the 1s then puts 0 on stack after.

Uiua 0.10.0, 5 bytes

>⇡+1.

Try on Uiua Pad!

Returns a list of 1s and 0s.

8 bytes

⇌[@0⍥@1]

Returns a string.

6 bytes

0⍥&p‿1

Prints the 1s then puts 0 on stack after.

Uiua 0.10.0, 4 bytes

±⇡+1

Try on Uiua Pad!

Returns a list of 1s and 0s.

8 bytes

⇌[@0⍥@1]

Returns a string.

6 bytes

0⍥&p‿1

Prints the 1s then puts 0 on stack after.

Source Link
Tbw
  • 3.1k
  • 4
  • 29
Loading