Changeset 13393


Ignore:
Timestamp:
07/11/11 13:57:04 (10 years ago)
Author:
Mark Evenson
Message:

JAVA:JARRAY-FROM-LIST infers the type of the Java array.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/java.lisp

    r13369 r13393  
    223223      i (1+ i)))
    224224    jarray))
     225
     226(defun jarray-from-list (list)
     227  "Return a Java array from LIST whose type is inferred from the first element.
     228
     229For more control over the type of the array, use JNEW-ARRAY-FROM-LIST."
     230  (jnew-array-from-list
     231   (jobject-class (first list))
     232   list))
    225233
    226234(defun list-from-jarray (jarray)
Note: See TracChangeset for help on using the changeset viewer.