[plt-scheme] Re: list output

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Wed Apr 29 13:01:31 EDT 2009

On Apr 29, 2009, at 12:52 PM, -gary- wrote:

> I decided to just use map and output the list in a HTML select menu.

You mean you refused to understand the error message?


> Am I correct in assuming that:
> - (append (list1) (list2) )
> should append list1 to list2?


See above.


> I have been trying this and nothing
> appears to be happening.  Am I doing anything wrong in the above?
>
> On Apr 29, 10:28 am, Matthias Felleisen <matth... at ccs.neu.edu> wrote:
>> And presumably (list-name) was high-lighted? (I am assuming
>>
>>    (define list-name '((1 "xxx") (2 "yyy")))
>>    (printf "~s\n" (list-name))
>>
>> or something like this is your entire program.)
>>
>> Last favor: what's your conclusion?
>>
>> On Apr 29, 2009, at 10:28 AM, -gary- wrote:
>>
>>
>>
>>> [EDIT]
>>
>>> Apologies, The actual error message for this was:
>>> "procedure application: expected procedure, given: ((1 "xxx") (5
>>> "xxx") (2 "xxx")) (no arguments)"
>>
>>> On Apr 29, 10:12 am, Matthias Felleisen <matth... at ccs.neu.edu>  
>>> wrote:
>>>> On Apr 29, 2009, at 10:03 AM, -gary- wrote:
>>
>>>>> Thanks for the replies.
>>
>>>>> I have tried printf, display etc. but they all give me an  
>>>>> exception.
>>>>> I used:
>>>>>  (printf "~s\n" (list-name))
>>
>>>> For your sake, I am giving you a question as an answer:
>>
>>>>   -- What did the error highlight in drscheme?
>>>>   -- Did you read the error message?
>>
>>>>> On Apr 29, 9:53 am, Noel Welsh <noelwe... at gmail.com> wrote:
>>>>>> On Wed, Apr 29, 2009 at 2:47 PM, -gary- <gary.dun... at gmail.com>
>>>>>> wrote:
>>>>>>> I have a list which I want to output.  What would be the best
>>>>>>> way to
>>>>>>> do this?
>>
>>>>>> Well... what defines "best" for you?
>>
>>>>>> You might start with display, write, and printf.
>>
>>>>>>> Also, is it possible to concatenate two lists together?
>>
>>>>>> append.
>>
>>>>>> N.
>>>>>> _________________________________________________
>>>>>>   For list-related administrative tasks:
>>>>>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>>>> _________________________________________________
>>>>>   For list-related administrative tasks:
>>>>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>
>>>> _________________________________________________
>>>>   For list-related administrative tasks:
>>>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>> _________________________________________________
>>>   For list-related administrative tasks:
>>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>
>> _________________________________________________
>>   For list-related administrative tasks:
>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme



Posted on the users mailing list.