Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
|
|
@ -1,11 +1,11 @@
|
|||
(define (person->string self) (format "%a : person." (person-name self)))
|
||||
(define (writer->string self) (format "%a: writer of %a."
|
||||
(person-name self)
|
||||
(writer-books self)))
|
||||
(person-name self)
|
||||
(writer-books self)))
|
||||
(define (father->string self) (format "%a: father of %a."
|
||||
(person-name self)
|
||||
(map person-name (father-children self))))
|
||||
|
||||
(person-name self)
|
||||
(map person-name (father-children self))))
|
||||
|
||||
; 'classes' definition, with inheritance.
|
||||
; a writer is a person, too.
|
||||
(struct person (name) #:tostring person->string)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue