Changeset 13910


Ignore:
Timestamp:
04/11/12 15:14:28 (10 years ago)
Author:
Mark Evenson
Message:

jss: add docstring for the rather useful HASHMAP-TO-HASHTABLE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/contrib/jss/invoke.lisp

    r13909 r13910  
    562562(defun hashmap-to-hashtable (hashmap &rest rest &key (keyfun #'identity) (valfun #'identity) (invert? nil)
    563563            table
    564              &allow-other-keys )
     564                             &allow-other-keys )
     565  "Converts the a HASHMAP reference to a java.util.HashMap object to a Lisp hashtable.
     566
     567The REST paramter specifies arguments to the underlying MAKE-HASH-TABLE call.
     568
     569KEYFUN and VALFUN specifies functions to be run on the keys and values
     570of the HASHMAP right before they are placed in the hashtable.
     571
     572If INVERT? is non-nil than reverse the keys and values in the resulting hashtable."
    565573  (let ((keyset (#"keySet" hashmap))
    566574  (table (or table (apply 'make-hash-table
Note: See TracChangeset for help on using the changeset viewer.