Scheme Write a procedure in Scheme called multiples that takes two parameters: b
ID: 3673413 • Letter: S
Question
SchemeWrite a procedure in Scheme called multiples that takes two parameters: base (assume it is positive) and N. Return a list of all positive whole-number multiples of base less than or equal to N.
One approach is to think of this as an application of map. This is not the only approach.
scheme@(guile-user)> (multiples 2 9) $8 = (2 4 6 8)
Please ensure the answer uses the Scheme dialect of Lisp. Scheme
Write a procedure in Scheme called multiples that takes two parameters: base (assume it is positive) and N. Return a list of all positive whole-number multiples of base less than or equal to N.
One approach is to think of this as an application of map. This is not the only approach.
scheme@(guile-user)> (multiples 2 9) $8 = (2 4 6 8)
Please ensure the answer uses the Scheme dialect of Lisp. Scheme
Write a procedure in Scheme called multiples that takes two parameters: base (assume it is positive) and N. Return a list of all positive whole-number multiples of base less than or equal to N.
One approach is to think of this as an application of map. This is not the only approach.
scheme@(guile-user)> (multiples 2 9) $8 = (2 4 6 8)
Please ensure the answer uses the Scheme dialect of Lisp.