DEV Community

loading...

Discussion on: Daily Challenge #66- Friend List

Collapse
citizen428 profile image
Michael Kohl

Thanks. It’s potentially too clever, but it does avoid the map + split combo for separating first and last names.

Thread Thread
therealkevinard profile image
Kevin Ard

Anyone who says rex is too clever clearly hasn't bumped into bit-shifting code-golf lol

Rex is a very appropriate amount of cleverness 😉

Thread Thread
citizen428 profile image
Michael Kohl

Missed the point but thanks for playing. 😉 What’s potentially too clever isn’t the use of regex, but doing both splits simultaneously and using each_slice(2) for combining them again.