RosettaCodeData/Task/Greatest-subsequential-sum/PicoLisp/greatest-subsequential-sum.l
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

3 lines
113 B
Text

(maxi '((L) (apply + L))
(mapcon '((L) (maplist reverse (reverse L)))
(-1 -2 3 5 6 -2 -1 4 -4 2 -1) ) )