Page 1 of 1

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

Posted: Tue Jul 05, 2022 10:27 am
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 11 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