GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — claude-code-source-code/src/utils/array.ts at main · irideas/claude-code-source-code Expand file tree/ Copy patharray.tsMore file actions 13 lines (11 loc) · 364 Bytes / Copy patharray.tsFile metadata and controls13 lines (11 loc) · 364 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 export function intersperse<A>(as: A[], separator: (index: number) => A): A[] { return as.flatMap((a, i) => (i ? [separator(i), a] : [a])) } export function count<T>(arr: readonly T[], pred: (x: T) => unknown): number { let n = 0 for (const x of arr) n += +!!pred(x) return n } export function uniq<T>(xs: Iterable<T>): T[] { return [...new Set(xs)] } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |