Login
7 branches 0 tags
Ben (X13/Arch) Simplified things a little 0643405 9 days ago 1260 Commits
nujel / stdlib / collections / buffer.nuj
;;; Nujel - Copyright (C) 2020-2021 - Benjamin Vincent Schulenburg
;;; This project uses the MIT license, a copy should be included under /LICENSE
;;;
;;; Some functions dealing with buffers

(defn buffer/equal? (a b)
      (def len (:length a))
      (when-not (= len (:length b))
                (return #f))
      (dotimes (i len #t)
        (when-not (= (ref a i)
                     (ref b i))
                  (return #f))))