I have defined 4 functions that return a tuple of type (int * int) something as below all those functions are tested.
let f1 (p1, p2, p3, p4) =
if <condition> then p1
....
else p4
How can I define a function that will use output of those 4 functions to return a tuple of type (int * int, int * int, int * int, int * int)
let test(p1, p2, p3, p4) =
(f1(p1, p2, p3, p4), f2(p1, p2, p3, p4), f3(p1, p2, p3, p4), f4(p1, p2, p3, p4))
OCaml interpeter gives me a syntax error, which doesnt really tell me anything.
(p1, p2, p3, p4)as a whole to f1 .. f4 you can simplify ittest ps = f1 ps, f2 ps, f3 ps, f4 ps- Sehnsucht