where is the difference lies???

1 view
Skip to first unread message

Gyan Shanker

unread,
Sep 25, 2007, 7:03:06 AM9/25/07
to Principles of Programming with JavaScript
When i type number? it shows
#<primitive:number?>

but when i type list-ref? it shows an error?

is it this case that list-ref is not a pre defined function or
identifier in scheme?

Venkatesh Choppella

unread,
Sep 25, 2007, 1:41:30 PM9/25/07
to popjs-20...@googlegroups.com
Hello Gyan Shanker,

The name of the scheme primitive is 'list-ref', not 'list-ref?'

Typing list-ref? on the scheme prompt gives you an error because the
identifier list-ref? is not bound at top-level.

Best.
- venkatesh


--
Venkatesh Choppella, PhD.
Associate Professor
Indian Inst. of Info. Tech. & Mgmt -- Kerala
Park Centre, Technopark, Kariavottam P.O.
Trivandrum, Kerala 695 581, INDIA
home: http://www.iiitmk.ac.in/~choppell
calendar: http://www.google.com/calendar/embed?src=chop...@gmail.com

Reply all
Reply to author
Forward
0 new messages