I have to write a procedure (delete-second2 LS) that takes an arbitrary list LS of items and returns the same list only with the second item deleted if there is no second item, o.w. returns original input list. I will need to use a conditional. And the tests should be as below.
Tests: (delete-second2 '()) ==> () (delete-second2 '(3)) ==> (3) (delete-second2 '(3 7)) ==> (3) (delete-second2 '(a b c d)) ==> (a c d) I just wanna know if I am starting the procedure out right? This is what I got so far... (define delete-second2(lambda(ls) (if(>ls 1)
____________________ Racket Users list: http://lists.racket-lang.org/users