How can I define on scheme language this function that return if x>0 + else *
like:
plus_or_muliti(int x) {
if (x>0) return +;
else return *;
}
i try this and it not work on racket:
(define (plus_or_multi x)
(if (>= x 0) + *))
i got this error
+: expected a function call, but there is no open parenthesis before this function