@@ -8,9 +8,15 @@ const needBuilder = fn => obj => {
11− return obj.orElse(fn);
11+ return obj.matchWith({
17+// simpler function for inline need.value(thing, () => {})
18+export const value = (obj, fn) => needBuilder(fn)(obj);
14export const details = needBuilder(() => {
20export const details = needBuilder(() => {
15 throw new Error('need details of point');
21 throw new Error('need details of point');