Recently started digging my way through GHC libraries
importData.ListcmpLength::String->String->OrderingcmpLengthlr=compare(lengthr)(lengthl)findLongest::String->StringfindLongests=head.sortBy(cmpLength).words$smain::IO()main=doputStrLn(findLongest"Iam a verrrrry loooongggg sentence")
importData.ListlongerString::String->String->StringlongerStringlr=iflengthl>lengthrthenlelserfindLongest::String->StringfindLongests=foldr(\longestw->longerStringlongestw)""(wordss)main::IO()main=doputStrLn(findLongest"Iam a verrrrry loooongggg sentence")
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.
Recently started digging my way through GHC libraries