Skip to main content
1 of 2
The Thonnu
  • 18.3k
  • 3
  • 16
  • 74

Thunno B, \$18 \log_{256}(96) \approx\$ 14.82 bytes

S"lightdark"5ApsAH

Attempt This Online!

S"lightdark"5ApsAH   # Implicit input. The B flag gets the ordinals of each character in the input.
S                    # Sum the ordinals
 "lightdark"         # String "lightdark"
            5Ap      # Split into ['light', 'dark']
               sAH   # Index into this list (1-based, modular)
                     # Implicit output
The Thonnu
  • 18.3k
  • 3
  • 16
  • 74