I'm trying to do with Racket a function that will return a list with n identical items.
I have tried this:
#lang racket
(build-list 5 (lambda () '*))
But I get the error:
build-list: contract violation
expected: (exact-nonnegative-integer? . -> . any/c)
given: #<procedure>
I want to get this: (* * * * *).
How can I do it?