to assign to
to assign
(?='flat'
) 'deep' to do it deeply
(?=BuiltIn
) types not to merge
(?=undefined
) types of O
to be replaced with ones of O1
import {L} from 'ts-toolbelt'
type test0 = Assign<[1, 2, 3], [[2, 1]]> // [2, 1, 3]
type test1 = Assign<[], [[1, 2, 3, 4], [2, 4, 6]]> // [2, 4, 6, 4]
type test2 = Assign<[0, 0, 0, 0, 0], [[0, 1], [0, 2, 0, 4?]]> // [0, 2, 0, 0 | 4, 0]
Assign a list of List into
L
with Merge. Merges from left to right, first items get overridden by the next ones (last-in overrides).