Scheme Help
By
BuckGup
in Programming
in Programming
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
-
0
-
mx5nos ·
Posted in Troubleshooting0 -
2
-
pchelp ·
Posted in Programs, Apps and Websites3 -
Cople ·
Posted in New Builds and Planning3 -
2
-
johnny45 ·
Posted in Linux, macOS and Everything Not-Windows0 -
11
-
Stahlmann ·
Posted in Graphics Cards4 -
Nicovl ·
Posted in Laptops and Pre-Built Systems1
-
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