Titles - The first three lines of this file were inserted by DrScheme They record metadata about the language level of this file in a form that our

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ;; The first three lines of this file were inserted by DrScheme. They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname titles) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ()))) ;; extract-titles: symbol (listof mminfo) -> (listof string) ; ;; Purpose: to put titles in a list according to the symbol entered. ; ;;Examples: ;;using a list that is made up of 2 mp3info and 2 movie info: ; ;;(extract-titles 'mp3s (cons (make-mp3info "Hannah Montana" "Bite This" 80 'Punk) ;; (cons (make-movieinfo "Beck" "Tropicalia" 185 'Alternative) ;; (cons (make-mp3info "Avril Lavigne" "Complicated" 100 'Pop) ;; (cons (make-movieinfo "Someone" "Random" 200 'Fantasy) empty)))))=> ;; (cons "Bite This" (cons "Complicated" empty)) ;;(extract-titles 'movies (cons (make-mp3info "Hannah Montana" "Bite This" 80 'Punk) ;; (cons (make-movieinfo "Beck" "Tropicalia" 185...
View Full Document

This note was uploaded on 10/21/2010 for the course CS 135 taught by Professor Vasiga during the Fall '07 term at Waterloo.

Page1 / 2

Titles - The first three lines of this file were inserted by DrScheme They record metadata about the language level of this file in a form that our

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online