export type HasTotalKey = { [k in K]: V }; export type HasPartialKey = { [k in K]?: V }; export type HasKey = | HasTotalKey | HasPartialKey; export const pluck = (k: K) => >(o: T): T[K] => o[k]; export const square = (o: T): [T, T] => [o, o];