Search found 2 matches

by Requizm
Sat Jan 06, 2018 11:13 am
Forum: Common Lisp
Topic: function call: expected a function after the open parenthesi
Replies: 2
Views: 4202

Re: function call: expected a function after the open parent

Ive just made a SO Q&A that answers this question. The part of the text that is most suitable for your case: Trying to group expressions or create a block (if (< a b) ((proc1) (proc2)) #f) When the predicate/test is true Scheme assumes will try to evaluate both (proc1) and (proc2) then it will call...
by Requizm
Tue Jan 02, 2018 2:53 am
Forum: Common Lisp
Topic: function call: expected a function after the open parenthesi
Replies: 2
Views: 4202

function call: expected a function after the open parenthesi

(define (paint d r) (if (empty? d) null (if (empty? r) null ( (list (first d) (first r)) (paint (rest d) (rest r)) ) ))) (paint (list 1 2 3 4) (list 1 2 3)) I'm run this script and take that error: function call: expected a function after the open parenthesis, but received (list 3 3)