1.Sum a list of integers.
Example: (list-sum ‘(1 11 3 7 9)) → 31
2. Find the mean of a list of integers.
Example: (mean ‘(1 11 3 7 9)) → 6.2
3. Determine if a list is“flat
(i.e.,containsnosub-lists).
Example: (flat? ‘(1 11 (2 3) 4 8)) → #f
1.Sum a list of integers. Example: (list-sum ‘(1 11 3 7 9)) → 31 2. Find the mean of a list of integers. Example: (mean
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am