@@ -1,26 +1,26 @@
11import * as ob from 'urbit-ob';
22
3−export const compose = (...fs) =>
3+const compose = (...fs) =>
44 fs.reduceRight((pF, nF) => (...args) => nF(pF(...args)), v => v);
55
6−export const allFalse = (...args) => args.every(a => a === false);
6+const allFalse = (...args) => args.every(a => a === false);
77
8−export const isLast = (l, i) => i === l - 1;
8+const isLast = (l, i) => i === l - 1;
99
10−export const isUndefined = v => v === undefined;
10+const isUndefined = v => v === undefined;
1111
12−export const defaultTo = (v, d) => (isUndefined(v) ? d : v);
12+const defaultTo = (v, d) => (isUndefined(v) ? d : v);
1313
14−export const seq = n => Array.from(Array(n), (_, i) => i);
14+const seq = n => Array.from(Array(n), (_, i) => i);
1515
16−export const fill = (n, v) => Array.from(Array(n), () => v);
16+const fill = (n, v) => Array.from(Array(n), () => v);
1717
1818// Terse true/false checks
19−export const t = v => v === true;
19+const t = v => v === true;
2020
21−export const f = v => v === false;
21+const f = v => v === false;
2222
23−export const isValidGalaxy = name => {
23+const isValidGalaxy = name => {
2424 let point;
2525 try {
2626 point = parseInt(ob.patp2dec(name), 10);
@@ -30,7 +30,7 @@ export const isValidGalaxy = name => {
3030 return point >= 0 && point < 256;
3131};
3232
33−export const randomPatq = len => {
33+const randomPatq = len => {
3434 let bytes = window.crypto.getRandomValues(new Uint8Array(len));
3535 let hex = bytes.reduce(
3636 (acc, byt) => acc + byt.toString(16).padStart(2, '0'),
@@ -38,3 +38,17 @@ export const randomPatq = len => {
3838 );
3939 return ob.hex2patq(hex);
4040};
41+
42+export {
43+ compose,
44+ allFalse,
45+ isLast,
46+ isUndefined,
47+ defaultTo,
48+ seq,
49+ fill,
50+ t,
51+ f,
52+ isValidGalaxy,
53+ randomPatq,
54+};