How would i take a list of ones and zeros say


Problem

How would I take a list of 1's and 0's say '(1 0 0 1 0) and change that to '(0 1 1 0 1). Essentially swapping 0's for 1's and vice versa, in racket. Both recursively and non-recursively? I thought about using map but can't get it to work.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: How would i take a list of ones and zeros say
Reference No:- TGS03256338

Expected delivery within 24 Hours