Two sum: Difference between revisions

Content added Content deleted
Line 314:
 
====Returning all matches====
Listing multiple solutions (as zero-based indices) whenwhere they exist:
 
<lang haskell>sumTo :: Int -> [Int] -> [(Int, Int)]