This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Java with Scheme
- To: "Armando Juarez" <tweetyjz at hotmail dot com>
- Subject: Re: Java with Scheme
- From: Per Bothner <per at bothner dot com>
- Date: 30 Jun 2001 14:56:09 -0700
- Cc: kawa at sourceware dot cygnus dot com
- References: <F760C9guA8M6XQQez1e00000a72@hotmail.com>
"Armando Juarez" <tweetyjz@hotmail.com> writes:
> this is what I've been kinda doing:
>
> String args[] = {"3", "2", "1"};
> LList list = new LList();
>
> Pair elPair = new Pair();
> FString scstr = new FString(args[0]);
> list = new Pair(scstr, list);
>
> but that only adds one object to the list, (i.e.: "3")
>
> well hope it's not too much trouble, thanks for your time.
You need to call new Pair for each element of the list.
'new Pair' is essentially the same as 'cons'.>
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/