Dr Racket place-image not working -


i wrote simple code in dr-racket , not working. here code:

(place-image (circle 5 "solid" "green") 50 80 (empty-scene 100 100))

i have selected bsl language compiling giving me following error:

place-image: function not defined

what going wrong?

thank in advance.

if you're following recent versions of dr. racket , "how design programs, second edition", should add following top of code:

(require 2htdp/image) 

the end result following:

#lang racket (require 2htdp/image) (place-image (circle 5 "solid" "green") 50 80 (empty-scene 100 100)) 

Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -