Blame


1 12687dd9 2023-08-04 jrmu ;; The first three lines of this file were inserted by DrScheme. They record metadata
2 12687dd9 2023-08-04 jrmu ;; about the language level of this file in a form that our tools can easily process.
3 12687dd9 2023-08-04 jrmu #reader(lib "htdp-intermediate-reader.ss" "lang")((modname 17.6.6) (read-case-sensitive #t) (teachpacks ((lib "draw.ss" "teachpack" "htdp") (lib "arrow.ss" "teachpack" "htdp") (lib "dir.ss" "teachpack" "htdp") (lib "hangman.ss" "teachpack" "htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "draw.ss" "teachpack" "htdp") (lib "arrow.ss" "teachpack" "htdp") (lib "dir.ss" "teachpack" "htdp") (lib "hangman.ss" "teachpack" "htdp")))))
4 12687dd9 2023-08-04 jrmu A list-of-symbols is either
5 12687dd9 2023-08-04 jrmu 1. empty or
6 12687dd9 2023-08-04 jrmu 2. (cons s los)
7 12687dd9 2023-08-04 jrmu where s is a one-letter symbol and los is a list-of-symbols.
8 12687dd9 2023-08-04 jrmu
9 12687dd9 2023-08-04 jrmu DNAprefix : list-of-symbols list-of-symbols -> boolean
10 12687dd9 2023-08-04 jrmu Given pattern and search-string, determine if pattern occurs in search-string.
11 12687dd9 2023-08-04 jrmu
12 12687dd9 2023-08-04 jrmu (define (DNAprefix pattern search-string)
13 12687dd9 2023-08-04 jrmu (