I'm using the MIT opencourseware for Computer Science 6.001. I'm also using repl.it to replicate what is happening in the lectures. In the second lecture he is teaching how to approximate pi/8 with sigma notation. First we define sum, and then we use it to apply to all kinds of sigma notations. My problem arises when trying to use lambda as an argument in order to denote a procedure. I'm typing exactly what the instructor does, but in repl.it the lambda is greyed out and I get an error saying that [pi-sum] is not a function. I also found a much simpler use of lambda as an argument online, if you don't feel like analyzing the sum procedure. Here is the code:

(define (1+ x) (+ 1 x)) (define (sum term a next B)/>/> (if (> a B)/>/> 0 (+ (term a) (sum term (next a) next B)/>/>))) (define (pi-sum a B)/>/> (sum (lambda (i) (/ 1 (* i (+ i 2)))) a (lambda (i) (+ i 4)) B)/>/>)

(define (add-three-to-each sent) (every (lambda (number) (+ number 3)) sent))

Neither of these work when I try to evaluate them. In both instances lambda is greyed out in repl.it. I tried using another compiler online and got the same results. Please help.

I forgot to add that this is using the scheme dialect of LISP. My apologies.