1import * as ob from 'urbit-ob'
3const compose = (...fs) => fs.reduceRight((pF, nF) => (...args) => nF(pF(...args)), v => v)
5const allFalse = (...args) => args.every(a => a === false);
7const isLast = (l, i) => i === l - 1;
9const isUndefined = v => v === undefined;
11const defaultTo = (v, d) => isUndefined(v) ? d : v;
13const seq = n => Array.from(Array(n), (_, i) => i);
15const fill = (n, v) => Array.from(Array(n), () => v);
17// Terse true/false checks
18const t = v => v === true;
20const f = v => v === false;
22const isValidGalaxy = name => {
25 point = parseInt(ob.patp2dec(name), 10)
29 return point >= 0 && point < 256
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list