[racket] Delete Second

From: Ashley Fowler (afowler2 at broncos.uncfsu.edu)
Date: Mon Sep 17 12:40:07 EDT 2012

Basically delete-second2 has to take a input of a list, if the list has more than 1 item then it will delete the second item and return the new list, if it doesnt have more than 1 item it will just return the original list.
________________________________________
From: danny.yoo at gmail.com [danny.yoo at gmail.com] on behalf of Danny Yoo [dyoo at hashcollision.org]
Sent: Monday, September 17, 2012 12:36 PM
To: Ashley Fowler
Cc: Matthias Felleisen; users at racket-lang.org
Subject: Re: [racket] Delete Second

> 2. Write a procedure (delete-second1 LS) that takes a list LS of at
> least two items and returns the same list only with the second item
> deleted. You may assume the input list has at least two elements.
>
> Tests:
> (delete-second1 '(3 7))  ==>  (3)
> (delete-second1 '(a b c d))  ==>  (a c d)


Ok.  Here are questions that come to mind:

* Did you do this second problem yet?

* How is delete-second2 similar to delete-second1?

* How is delete-second2 different from delete-second1?




Posted on the users mailing list.