Skip to main content
7 of 8
added 1 character in body
Adnan
  • 44.5k
  • 6
  • 82
  • 246

#05AB1E, 7 6 4 3 bytes

Code:

l`-

Explanation:

l     # Convert both elements to lowercase
 `    # Flatten the array
  -   # Loop over the second line of text and substract each char from the first character
        For example: "abcde""ba"- would result in "cde"

Try it online!

Truthy is when the current letter is outputted. Falsy is when nothing is outputted.

Adnan
  • 44.5k
  • 6
  • 82
  • 246