How can I create a list with one element but with a given depth?

前端 未结 0 860
萌比男神i
萌比男神i 2021-01-13 18:22

I\'m new in racket and I want to find the way to create a list with only one element but with a given depth by recursion. For example:

(create-list 3 \'x

相关标签:
回答
  • 消灭零回复
提交回复
热议问题