Just a curryable map to make things cute and tidy.
(f: (x: T) => U)
| 60 | } |
| 61 | /** Just a curryable map to make things cute and tidy. */ |
| 62 | function map<T, U>(f: (x: T) => U): (arr: T[]) => U[] { |
| 63 | return function (arr: T[]): U[] { |
| 64 | return arr.map(f); |
| 65 | }; |
| 66 | } |
| 67 | /** |
| 68 | * This is a higher order function that takes a function that transforms a |
| 69 | * T into a G, and returns a function that takes TupleData<T>s and converts |
no outgoing calls