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: Java array class is not kawa Class?


Jim White wrote:
Groovy has very compact syntax for doing things with Java classes and collections

Actually, Kawa's is pretty darn compact, too:


#|kawa:1|# (define v (vector 3 4 5 6))
#|kawa:2|# (set! (v 3) (v 2))
#|kawa:3|# v
#(3 4 5 5)
#|kawa:4|# v:size
4
|kawa:5|# v:class
class gnu.lists.FVector
#|kawa:9|# (set! a (integer[] 9 8 7 6))
#|kawa:10|# (set! (a 1) (a 0))
#|kawa:11|# a
[9 9 7 6]
#|kawa:14|# (java.lang.Math:cos 3.4)
-0.9667981925794611
--
	--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]