Greatest subsequential sum: Difference between revisions

Content deleted Content added
Hout (talk | contribs)
Hout (talk | contribs)
Line 90:
=={{header|AppleScript}}==
 
DerivingLinear derivation of both sum and list in a single fold:
<lang applescript>-- maxSubseq :: [Int] -> [Int] -> (Int, [Int])
on maxSubseq(xs)