| CS 291 | University of Puget Sound | Spring, 2020 |
|
Programming Language Paradigms:
|
||
|
Explorations with Functional Problem Solving (supported by Scheme/Haskell)
and Declarative Prblem Solving (supported by Prolog) |
||
The following problem listing represents initial brainstorming and should not be considered final. Problems may be added, removed, and/or modified as the semester progresses.
Write the following Scheme functions:
Write a Scheme function numatons ls) that computes the number
of atoms inthe list ls and its sublists. Thus,
(numatoms '(A (B C) D (E (F G)) H)) returns 8, as each letter
here is counted once.
|
created 30 November 2019 revised November-December 2019 |
|
| For more information, please contact Henry M. Walker at walker@cs.grinnell.edu. |