<commit_before>;;;; p20.lisp
;;;; Remove the k'th element from a list

(in-package :99-problems)

(defun remove-at (lst place)
  (if (= 1 place)
    (rest lst)
    (cons (first lst)
          (remove-at (rest lst)
                     (1- place)))))<commit_msg>Use zero-based numbering<commit_after>;;;; p20.lisp
;;;; Remove the k'th element from a list (zero-based numbering)

(in-package :99-problems)

(defun remove-at (lst place)
  (if (zerop place)
    (rest lst)
    (cons (first lst)
          (remove-at (rest lst)
                     (1- place)))))
{'fraction_non_alphanumeric': 0.15591397849462366, 'fraction_numerical': 0.01971326164874552, 'mean_word_length': 2.450617283950617, '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': '7099011', 'n_tokens_mistral': 212, 'n_tokens_neox': 197, 'n_words': 59}