You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
574 B

3 years ago
;;;; search.lisp
(in-package #:cl-bible.search)
3 years ago
(defun find-in-bible (bible phrase)
(remove-if-not (lambda (verse) (search phrase
(cdr
(assoc cl-bible.data:*translation*
(v:translations verse)))))
bible))
3 years ago
(defun find-book (bible book)
3 years ago
(remove-if-not (lambda (verse) (search book (v:bname verse))) bible))
3 years ago
(defun find-chapter (book chapter)
3 years ago
(remove-if-not (lambda (verse) (string= chapter (v:chapter verse))) book))