I'm trying to take in an argument A and a list L in the function(consToAll A L)
and cons the argument into every sublist of that list.
What is the best way of going about this?
This is the desired output:
If L is ( (1) (2) (3) )
then (consToAll 'a L)
returns:
( (a 1) (a 2) (a 3) )
.