How to return in Scheme?

79 views Asked by At

I currently have an assignment from uni where I have to create a method in Scheme which checks that a list has 2 positive integers (one of which must be between 1 and 3) and a pair.

This list must then be returned. I have no idea how to return this list and I haven't been able to find any helpful resources online.

Here is my code so far:

(define (event time id params)
  (if (> time -1)
      (and (or (= id 1) (= id 2) (= id 3))
           )
      (time id params)))
0

There are 0 answers