Lets say i have a function definition like this:
let sum (numbers: int list) =
// code here
What are possible ways to compute a sum of all other elements in numbers list? So if input is [3;5;3;7]
result is [(3, 15); (5, 13); (3, 15); (7, 11)]
.
Im actually interested in any solutions, especially those which use functional approach.
Thanks