ferrum icon indicating copy to clipboard operation
ferrum copied to clipboard

`match(val: V, pred: V -> Bool, mapFn: V -> U) -> U` isType(val, Type)

Open koraa opened this issue 5 years ago • 0 comments

isType = (val, T) => type(v) === T;
match = (v, pred, fn) => pred(v) ? fn(v) : v

koraa avatar Oct 12 '20 17:10 koraa