Transformer architecture implemented in TypeScript with WebGPU.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
nn/src/list.show.ts

7 lines
313 B

import { _, _l, g, n } from './core';
import { concat, intersperse, map } from './list';
import { fromString as _s, cons, snoc } from './string';
n('list.show');
export const show = g('show', _l(eshow => _l(xs => concat._(snoc._(cons._(_s('['))._(intersperse._(_s(', '))._(map._(eshow)._(xs))))._(_s(']'))))));