AI API 1/9: a real standard library #155

Closed
opened 2026-10-02 20:07:38 +00:00 by Winnie · 0 comments
Owner

The Lisp lacks built-in list/math ergonomics — every brain redefines list-min, list-max, sum-loans, scan-book, trim, count-face. Build these in:

  • sum, min, max, average, sort, sort-by
  • map, filter, reduce, find, count-if, any?, all?
  • take, drop, zip, group-by, unique
  • clamp, lerp, pow, exp, log, round
  • hash tables, sets, vectors, queues

Then the per-file (defun list-max (xs) ...) boilerplate disappears, along with most of the recursive walking. Acceptance: the builtins exist, are tested, and every shipped brain's local redefinitions are removed in favor of them.

The Lisp lacks built-in list/math ergonomics — every brain redefines list-min, list-max, sum-loans, scan-book, trim, count-face. Build these in: - sum, min, max, average, sort, sort-by - map, filter, reduce, find, count-if, any?, all? - take, drop, zip, group-by, unique - clamp, lerp, pow, exp, log, round - hash tables, sets, vectors, queues Then the per-file (defun list-max (xs) ...) boilerplate disappears, along with most of the recursive walking. Acceptance: the builtins exist, are tested, and every shipped brain's local redefinitions are removed in favor of them.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Winnie/bankwars#155
No description provided.