Page 1 of 1

1. Find the maximum integer in a list of integers. Example: (list-max ‘(1 11 3 7 9)) → 11 2. Searchanon-flat list to det

Posted: Fri Jul 08, 2022 6:39 am
by answerhappygod
1. Find the maximum integer in a list of integers.
Example: (list-max ‘(1 11 3 7 9)) → 11
2. Searchanon-flat list to determine if a value is there.
Example: (in-list? ‘a ‘(7 “a” (b (c a)) () (d d))) → #t
3. Determine if a list of integers is in ascending order.
Example: (sorted? ‘(-1 1 2 3 7 9)) → #t