likes::[String]->Stringlikes[]="no one likes this"likes[name]=name<>" likes this"likesnames=showMultiplenames<>" like this"showMultiple::[String]->StringshowMultiplexs=casexsof[]->""[x]->x[x,x']->x<>" and "<>x'[x,x',x'']->x<>", "<>showMultiple[x',x''](x:x':rest)->x<>", "<>x'<>" and "<>(show$lengthrest)<>" others"
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Very declarative Haskell solution: