This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// goog.require('goog.structs.LinkedMap'); | |
goog.provide('sim.examples.linkedMap_'); | |
sim.examples.linkedMap_.getKeyByIndex = function getKeyByIndex(i, lMap) { | |
return lMap.getKeys()[i]; | |
}; | |
sim.examples.linkedMap_.getValueByIndex = function getValueByIndex(i, lMap) { | |
return lMap.getValues()[i]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* originally written by Chouser. taken from clojure google group, http://groups.google.com/group/clojure | |
discussion title: clojure -> javascript | |
http://groups.google.com/group/clojure/browse_frm/thread/83c3c18951a764e2/62d630249e75599c?#62d630249e75599c | |
Some (hopefully annotated) additions are by Shane Daniel. | |
of note: Karl Krukow's streamlined port of Clojure data structures to Java. | |
https://github.com/krukow/clj-ds | |
*/ |
NewerOlder