This is the mail archive of the kawa@sourceware.org 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]
Other format: [Raw text]

Re: GSOC | Extending Common Lisp support


On 06/19/2012 12:53 PM, Charles Turner wrote:
If you want to build up a list in Java to return to Lisp, what's the recommended way? It would be nice if LList implemented #add, but it doesn't, so I've resorted to the equivalent of CONS chaining a load of Pairs. Can't find examples of similar construction in the code base so far. This is for the package-uses-list support.

Just looping through the imported/importing list, and just calling Pair.make seems fine. If you care about the order you could optionally do LList.reverseInPlace, if needed. -- --Per Bothner per@bothner.com http://per.bothner.com/


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