[racket] Problems with Plot

From: Neil Toronto (neil.toronto at gmail.com)
Date: Wed Oct 30 14:02:34 EDT 2013

You're not the first person to try using plot in a student language and 
run into this problem. (At least, I assume that's what you did.) I 
wouldn't call it your fault.

IIRC, though, there are technical issues that make keyword arguments 
hard in student languages.

Neil ⊥

On 10/30/2013 10:58 AM, Dave Yrueta wrote:
> Please ignore previous post.  Figured out the problem. My bad.
> On Oct 30, 2013, at 9:47 AM, Dave Yrueta <dyrueta at gmail.com> wrote:
>
>> Hi All --
>>
>> I pulled this from the Docs on plot --
>>
>> (require plot)
>>
>> (plot (function (λ (x) (sin (* 4 x))) -1 1)
>>         #:x-min -1.5 #:x-max 1.5 #:y-min -1.5 #:y-max 1.5)
>>
>> -- ran it in Dr. Racket, and received the following error: "#%datum: keyword used as an expression" with "#:x-min" highlighted in pink.   I've run plot functions before and never had a problem.  Am using Racket version 5.3.6.
>>
>> What am I doing wrong? Apologies in advance if I'm making an obvious mistake.
>>
>> Thanks!
>> Dave
>>
>>
>
>
> ____________________
>    Racket Users list:
>    http://lists.racket-lang.org/users
>


Posted on the users mailing list.