[plt-scheme] Question about Intermediate Student

From: Carl Eastlund (cce at ccs.neu.edu)
Date: Thu Apr 9 23:49:57 EDT 2009

On Thu, Apr 9, 2009 at 11:18 PM, Todd O'Bryan <toddobryan at gmail.com> wrote:
> Whoops, I had forgotten that that was a book problem. I do it in class
> with my students and then have them write geometric-function. (I'll
> check to make sure it's not on my website.)
>
> Are you in 4.1.5?
>
> Welcome to DrScheme, version 4.1.5 [3m].
> Language: Intermediate Student; memory limit: 128 megabytes.
> This program should be tested.
>> ((arithmetic-sequence 5 2) 4)
> function call: expected a name after an open parenthesis, but found
> something else
>
> Todd

Ah, Robby makes a good point, Intermediate isn't high enough, you need
Intermediate + Lambda.  You can, however, do this in Intermediate:

(define seq-2-3 (arithmetic-sequence 2 3))

(seq-2-3 0)

Or the same thing with a local.

-- 
Carl Eastlund


Posted on the users mailing list.