How to allow lists to be entered as arguments Scheme -


I am trying to write the process that accepts at least two arguments that are in both lists. Can I just enter that list as logic in order to use 'X' and 'Y'? I have already written this process and I do not see any error with it, but when I try to run it, the Interaction panel says "Application: No Process; The process expected was given Arguments can apply: 2 logic ...:

3 "And I do not know much about this process, the process I am writing is down.

  (define (less xy) (if ((length x) & lt; (length y)) x (if ((xx)> (length y) yx)) )   

The racket is a prefix language, which means that operators should come before logic . Regarding how (<(p (> (length x) (length y) yx):

  (defined (lower xy) (if (& lt; (length x) (Length y)))  

or ...

  (define (less xy) (if (& lt; = (length x) ( Length y)) xy))  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -