Scheme Help
Go to solution
Solved by BuckGup,
#lang racket
(define (flatten_append list1 list2)
(if (null? list1) list2
(flatten (cons (car list1) (append (cdr list1) list2)))))
Here's code that works. You don't need to use pair and can just append the car from list 1 to the cdr of list1 and list2 since con needs two elements.
-
Topics
-
DARTHDIVIDER0213 ·
Posted in Troubleshooting7 -
0
-
Xx-albinos-xX ·
Posted in Troubleshooting10 -
2
-
_Darasuum_ ·
Posted in Power Supplies6 -
1
-
4
-
anothertealtiger ·
Posted in Programs, Apps and Websites2 -
Mumintroll ·
Posted in Programs, Apps and Websites4 -
ElDTac ·
Posted in CPUs, Motherboards, and Memory3
-
-
play_circle_filled
Latest From ShortCircuit:
The coolest looking monitor. Period. - ASUS ROG display at Computex (Sponsored)

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now