|CIS 554 -- Clojure Quiz||Name
to return the third value in a list. You may assume that the list has at least three elements.
negto return the first negative number in a list of numbers. You may assume that the list contains some negative numbers.
N, will return a list or sequence (either one) of the integers
count-to. Then use
count-toto write an expression whose value is a list of squares of the numbers
100. That is, it returns
[1 4 9 16 ... 10000]
Nwhich returns true if
Nis not a multiple of
3. Reminder: Clojure has
notfunctions that you can use.
25that are not multiples of
sumto add up all the numbers in a list of numbers. Hint: Define
sumto have two parameters, and use one of them as an "accumulator."