From f82568281e0307d24ce3bbe69b41c854045531f1 Mon Sep 17 00:00:00 2001 From: Yogthos Date: Mon, 29 Jun 2026 14:33:31 -0400 Subject: [PATCH] Correct the misleading chunked-seq? stub comment The overlay comment claimed Jolt has no chunked seqs and that chunked-seq? is always false. That is no longer true: a vector's seq is a real chunked seq, and post-prelude.ss rebinds chunked-seq? to na-chunked-seq?, which returns true for a vector seq. The defn here is only a placeholder so references compile during overlay load. Updated the comment to say so. --- jolt-core/clojure/core/21-coll.clj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jolt-core/clojure/core/21-coll.clj b/jolt-core/clojure/core/21-coll.clj index 054ad69..cdb5f83 100644 --- a/jolt-core/clojure/core/21-coll.clj +++ b/jolt-core/clojure/core/21-coll.clj @@ -271,7 +271,10 @@ (when (< i (count vars)) (var-set (nth vars i) (nth saved i)) (recur (inc i)))))))) -;; Jolt has no chunked seqs, so this is always false. +;; A vector's seq IS a real chunked-seq (chunk-first hands out a 32-element block). +;; This is only a placeholder so references compile during overlay load; the host +;; rebinds chunked-seq? to na-chunked-seq? in post-prelude.ss, which returns true +;; for a vector seq and false otherwise. (defn chunked-seq? [x] false) ;; Atom peripheral operations. atom/swap!/reset!/deref stay native — the compiler