top | item 35206420 (no title) throwaway09432 | 3 years ago Can you map over this and preserve the NonEmptyArray type? discuss order hn newest triyambakam|3 years ago Do you mean pass in a type? type NonEmptyArray<T> = [T, ...T[]]; throwaway09432|3 years ago I mean if I have a NonEmptyArray say xs, and I then xs.map(x=>2*x), will the result of this expression be a NonEmptyArray ? load replies (1)
triyambakam|3 years ago Do you mean pass in a type? type NonEmptyArray<T> = [T, ...T[]]; throwaway09432|3 years ago I mean if I have a NonEmptyArray say xs, and I then xs.map(x=>2*x), will the result of this expression be a NonEmptyArray ? load replies (1)
throwaway09432|3 years ago I mean if I have a NonEmptyArray say xs, and I then xs.map(x=>2*x), will the result of this expression be a NonEmptyArray ? load replies (1)
triyambakam|3 years ago
throwaway09432|3 years ago