[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.9240326 [View]
File: 25 KB, 300x250, 1505660616587-r9k.png [View same] [iqdb] [saucenao] [google]
9240326

>>9240078
>>9240136
In haskell, this is just

getLongest = foldl1 biggest . words
___where biggest a b = if (length a) > (length b) then a else b

Navigation
View posts[+24][+48][+96]