Name: Anonymous 2013-01-28 0:26
How the fuck do I do this?
Writethefunctionmatch-pointsthatconsumestwofunctions(fun1andfun2, each of which consumes one value) and one list (lst). The function match-points produces a list of boolean values which has the same length as lst. The first value in the produced list will be true if the functions agree (i.e., have the same value) when they are applied on the first element of the provided list, and false
otherwise. The second value in the produced list will be true if the functions produce the same value when they are applied on the second element in the provided list, and so on. For example,
since 0+0=02 and 2+2=22, but -2+(-2)=-4 which is not equal to (-2)2=4.
Writethefunctionmatch-pointsthatconsumestwofunctions(fun1andfun2, each of which consumes one value) and one list (lst). The function match-points produces a list of boolean values which has the same length as lst. The first value in the produced list will be true if the functions agree (i.e., have the same value) when they are applied on the first element of the provided list, and false
otherwise. The second value in the produced list will be true if the functions produce the same value when they are applied on the second element in the provided list, and so on. For example,
(match-points sqr (lambda (x) (+ x x)) (list 0 2 -2))
=> (list true true false)since 0+0=02 and 2+2=22, but -2+(-2)=-4 which is not equal to (-2)2=4.