I'm using chezscheme 9.5.8
. I created the following function, which receives a string and prints a phrase using that string:
> (define (ijustlove str)
(display
(string-append "I just love "
(string-upcase str)
"!!!\n")))
> (ijustlove "bananas")
I just love BANANAS!!!
But, if I map the function over a list, it prints #<void>
(Which is the same as doing (display (void))
):
> (map ijustlove '("strawberries" "bananas" "grapes"))
I just love STRAWBERRIES!!!
I just love BANANAS!!!
I just love GRAPES!!!
(#<void> #<void> #<void>)
Is there any way to avoid this?