I'm completely stuck on a problem to write a function that does NOT use recursion, locals, or lambda. Only abstract list functions can be used. The function must input a list of positive integers, and output a list of integers that are strictly greater than 1.
any ideas on how to do this? I've never implemented abstract list functions on their own and I'm not sure which ones would be used in this case. Also, the language setting is Intermediate Student, no higher.
>1
predicate, you can define one; and if you're not allowed to uselambda
either, maybe you can usecurry
instead.-1+
,positive?
,1+
withmap
,filter
, andmap
.1+
and-1+
seem to be only in MIT-scheme (stackoverflow.com/questions/24228642/…)