[plt-scheme] Re: list output
On Apr 29, 2:21 pm, Matthias Felleisen <matth... at ccs.neu.edu> wrote:
> Plenty ideas but for you only questions.
Fair enough.
> Grant read the error message to you. It doesn't say ANYTHING about
> parameters. What does it mean?
It thinks it's a procedure call or expects it to be. Other than that
I have no idea.
> On Apr 29, 2009, at 2:15 PM, -gary- wrote:
>
>
>
> > Too few parameters maybe? I'm not entirely sure.
>
> > As for the append, I'm not sure what the problem is because judging
> > from any examples I've seen, this seems correct. Any idea's?
>
> > On Apr 29, 1:11 pm, Matthias Felleisen <matth... at ccs.neu.edu> wrote:
> >> So what does the error message mean? Which btw is the same one as you
> >> get for Jay's sample program:
>
> >>> (define list1 (list 1 2))
> >>> (define list2 (list 3 4))
> >>> (append (list1) (list2))
>
> >> ??????????
>
> >> On Apr 29, 2009, at 1:12 PM, -gary- wrote:
>
> >>> No, I read that map would be better than the way I was trying to do
> >>> it.
>
> >>> On Apr 29, 1:01 pm, Matthias Felleisen <matth... at ccs.neu.edu> wrote:
> >>>> 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
>
> >>>> _________________________________________________
> >>>> 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