2 of 3
Fix logic error (me doing Vyxal quickly before going out to do yard work...)
a stone arachnid
- 3.4k
- 16
- 28
Vyxal, 22 bytes
⌈'⇩ḣh\h≠$h\s=∧;U56>7*Ẏ
⌈'⇩ḣh\h≠$h\s=∧;U56>7*Ẏ
⌈' ; Filter input, split on spaces, by:
⇩ḣ Push (input lowercased)([0], [1:])
h\h≠ Second character isn't `h`
$h\s=∧ and first character isn `s`
U Uniquify ^
56> 1 if len(^) is 7 or more, otherwise 0
7*Ẏ Multiply by 7 and slice [0:that]
a stone arachnid
- 3.4k
- 16
- 28