map4 : List(a), List(b), List(c), List(d), (a, b, c, d -> e) -> List(e)
Apply a quaternary function to groups of items from four lists, returning a list of results.
The result's length is the length of the shortest input list.
expect [1, 2, 3].map4([10, 20, 30], [100, 200, 300], [1000, 2000, 3000], |a, b, c, d| a + b + c + d) == [1111, 2222, 3333]
expect [1, 2, 3, 4, 5].map4([10, 20], [100, 200, 300], [1000, 2000, 3000, 4000], |a, b, c, d| a + b + c + d) == [1111, 2222]