<commit_before>(defpackage lzay-list
  (:use :cl)
  (:export :lcons
           :empty?
           :head
           :tail
           :to-list
           :lmapcar
           :range
           :take
           :drop
           :filter
           :levery
           :|ETC...|))
(in-package :slow-jam)

(defclass lcons ()
  ((val :initarg :val)))

(defmacro lcons (head tail)
  `(make-instance 'lcons
                  :val (cons ,head (lambda () ,tail))))

(defgeneric empty? (lcons))
(defgeneric head (lcons))
(defgeneric tail (lcons))

(defmethod empty? ((lcons lcons))
  nil)<commit_msg>Stupid problem was fixed<commit_after>(defpackage lazy-list
  (:use :cl)
  (:export :lcons
           :empty?
           :head
           :tail
           :to-list
           :lmapcar
           :range
           :take
           :drop
           :filter
           :levery
           :|ETC...|))
(in-package :lazy-list)

(defclass lcons ()
  ((val :initarg :val)))

(defmacro lcons (head tail)
  `(make-instance 'lcons
                  :val (cons ,head (lambda () ,tail))))

(defgeneric empty? (lcons))
(defgeneric head (lcons))
(defgeneric tail (lcons))

(defmethod empty? ((lcons lcons))
  nil)
{'fraction_non_alphanumeric': 0.14358108108108109, 'fraction_numerical': 0.0, 'mean_word_length': 1.7816901408450705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7079400', 'n_tokens_mistral': 400, 'n_tokens_neox': 388, 'n_words': 100}