Answers for "how to make a list with size n in racket"

0

how to make a list with size n in racket

Use "build-list":
(build-list n proc): Creates a list of n elements by applying proc to 
the integers from 0 to (sub1 n) in order. If lst is the resulting list, 
then (list-ref lst i) is the value produced by (proc i).
Posted by: Guest on July-02-2021

Code answers related to "how to make a list with size n in racket"

Browse Popular Code Answers by Language