[plt-scheme] Re: list output

From: -gary- (gary.dunne1 at gmail.com)
Date: Wed Apr 29 13:11:18 EDT 2009

Nothing happens when I do this.

On Apr 29, 12:54 pm, Jay McCarthy <jay.mccar... at gmail.com> wrote:
> What happens when you try a simple case:
>
> (define list1 (list 1 2))
> (define list2 (list 3 4))
> (append (list1) (list2))
>
> ?
>
>
>
> On Wed, Apr 29, 2009 at 10:52 AM, -gary- <gary.dun... at gmail.com> wrote:
> > I decided to just use map and output the list in a HTML select menu.
>
> > Am I correct in assuming that:
> > - (append (list1) (list2) )
> > should append list1 to list2?  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
>
> --
> Jay McCarthy <j... at cs.byu.edu>
> Assistant Professor / Brigham Young Universityhttp://teammccarthy.org/jay
>
> "The glory of God is Intelligence" - D&C 93
> _________________________________________________
>   For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


Posted on the users mailing list.