This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Java with Scheme


"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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]