export function when(x: X, actuate: (x: NonNullable) => any) { return x ? actuate(x) : undefined }