…ꥦ¨™Å#'y«.•S:-•ª™IDJ{нaиK
Try it online or verify all test cases.
Explanation:
…ꥦ¨™Å # Push dictionary string "blink ink pink"
# STACK: "blink ink pink"
# # Split it on spaces
# STACK: ["blink","ink","pink"]
'y '# Push "y"
# STACK: ["blink","ink","pink"],"y"
« # Append it to each string in the list
# STACK: ["blinky","inky","pinky"]
.•S:-• # Push compressed string "clyde"
# STACK: ["blinky","inky","pinky"],"clyde"
ª # Append it to the list
# STACK: ["blinky","inky","pinky","clyde"]
™ # Titlecase each string
# STACK: ["Blinky","Inky","Pinky","Clyde"]
I # Push the input-list
# STACK1: ["Blinky","Inky","Pinky","Clyde"],["Pac-Man"]
# STACK2: ["Blinky","Inky","Pinky","Clyde"],["Pinky"]
# STACK3: ["Blinky","Inky","Pinky","Clyde"],[]
D # Duplicate it
# STACK1: ["Blinky","Inky","Pinky","Clyde"],["Pac-Man"],["Pac-Man"]
# STACK2: ["Blinky","Inky","Pinky","Clyde"],["Pinky"],["Pinky"]
# STACK3: ["Blinky","Inky","Pinky","Clyde"],[],[]
J # Join the copy to a single string
# STACK1: ["Blinky","Inky","Pinky","Clyde"],["Pac-Man"],"Pac-Man"
# STACK2: ["Blinky","Inky","Pinky","Clyde"],["Pinky"],"Pinky"
# STACK3: ["Blinky","Inky","Pinky","Clyde"],[],""
{ # Sort its characters
# STACK1: ["Blinky","Inky","Pinky","Clyde"],["Pac-Man"],"-MPaacn"
# STACK2: ["Blinky","Inky","Pinky","Clyde"],["Pinky"],"Pikny"
# STACK3: ["Blinky","Inky","Pinky","Clyde"],[],""
н # Pop and leave just its first character
# STACK1: ["Blinky","Inky","Pinky","Clyde"],["Pac-Man"],"-"
# STACK2: ["Blinky","Inky","Pinky","Clyde"],["Pinky"],"P"
# STACK3: ["Blinky","Inky","Pinky","Clyde"],[],""
a # Check if this is a letter
# STACK1: ["Blinky","Inky","Pinky","Clyde"],["Pac-Man"],0
# STACK2: ["Blinky","Inky","Pinky","Clyde"],["Pinky"],1
# STACK3: ["Blinky","Inky","Pinky","Clyde"],[],0
и # Repeat the input-list that many times
# STACK1: ["Blinky","Inky","Pinky","Clyde"],[]
# STACK2: ["Blinky","Inky","Pinky","Clyde"],["Pinky"]
# STACK3: ["Blinky","Inky","Pinky","Clyde"],[]
K # Remove those strings from the earlier quartet-list
# STACK1: ["Blinky","Inky","Pinky","Clyde"]
# STACK2: ["Blinky","Inky","Clyde"]
# STACK3: ["Blinky","Inky","Pinky","Clyde"]
# (after which the resulting list is output implicitly)
See this 05AB1E tip of mine (sections How to use the dictionary? and How to compress strings not part of the dictionary?) to understand why …ꥦ¨™Å
is "blink ink pink"
and .•S:-•
is "clyde"
.
[null]
? \$\endgroup\$