Posts by ojdo
Uiua, 27 bytes* Function definition. Takes string as argument, returns 0/1 for false/true. ≍♭1◴⧈(≍⇡₁2⍆⌵-)⍉⊟⊃◿₅(⌊÷₅)-@A Uiua pad this online *: assuming a single-byte coding scheme (SBCS) is a...
Uiua, 38 bytes (SBCS) Full program, prints diamond to STDOUT. Some nifty tricks turned out to be longer than some straightforward ways. Uses one leading whitespace even on the longest line to make...
Uiua, 19 17 bytes (SBCS) Takes argument as integer (decimal), returns lone ones count. /+↧↧∩¬⊸∩⌟⬚0↻¯∩1⊥₂ Uiua pad this online Explanation Rotates binary representation left and right (negate...
Uiua, 10 bytes (SBCS) Counts all digit occurrences and checks the count array is all-equal (for which there is no short idiom in Uiua yet except for that deduplicate-length-equal-to-one and simila...
Uiua, 7 bytes (SBCS) Function that takes integer as input, returns odd-digit count. /+◿₂⊥₁₀ Uiua Pad this online Explanation /+◿₂⊥₁₀ # 123 example input ⊥₁₀ # [3 2 1] base-10 digi...
Uiua, 19 bytes (SBCS) Defines a function that takes the string and returns a string: ⊂@#♭⍥⍉⊙(↯2_3)=3⊸⧻↘1 Uiua Pad this online Explanation ⊂@#♭⍥⍉⊙(↯2_3)=3⊸⧻↘1 "#ABC" example input ...
Uiua, 3 bytes (SBCS) Builtin +1. +1⧆ Uiua pad this online
