If "when", "for", and "set!" is not allowed in this which are not function 'length'Which other functions can I use inste

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

If "when", "for", and "set!" is not allowed in this which are not function 'length'Which other functions can I use inste

Post by answerhappygod »

If "when", "for", and "set!" is not allowed in this which arenot function 'length'Which other functions can I use insteadof?
If When For And Set Is Not Allowed In This Which Are Not Function Length Which Other Functions Can I Use Inste 1
If When For And Set Is Not Allowed In This Which Are Not Function Length Which Other Functions Can I Use Inste 1 (342.81 KiB) Viewed 9 times
Untitled (define...) 1 2 3 4 5 6 7 8 9 10 11 12 13 E S 1: Untit... #lang racket (define (rem_second lst) (define len (length lst)) (define output '()) 2: boolea... ) ) (when (> len 2) (for ([i (for/list ([x len]) x)]) Untitled - DrRacket ✔ Debug (display output) ) 14 (rem_second (1 2 3 4)) 15 3: factoria... Determine language from source ▾ (when (not (equal? i 1)) (set! output (append output (list (list-ref lst i)))) Welcome to DrRacket, version 8.5 [cs]. Language: racket, with debugging; memory hit: 128 MB. (134) > | Macro Stepper # 4: leapYea... 4:2 Run 5: leapYea... Stop 692.22 MB
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply