Skip to main content

Field Access

23
  • aclone

    Returns a javascript array, cloned from the passed in array

  • aget

    Returns the value at the index/indices. Works on JavaScript arrays.

  • alength

    Returns the length of the array. Works on arrays of all types.

  • amap

    Maps an expression across an array a, using an index named idx, and return value named ret, initialized to a clone of a,...

  • areduce

    Reduces an expression across an array a, using an index named idx, and return value named ret, initialized to init, sett...

  • aset

    Sets the value at the index/indices. Works on JavaScript arrays. Returns val.

  • double-array

    Creates an array of doubles. Does not coerce array, provided for compatibility with Clojure.

  • int-array

    Creates an array of ints. Does not coerce array, provided for compatibility with Clojure.

  • into-array

    Returns an array with components set to the values in aseq. Optional type argument accepted for compatibility with Cloju...

  • long-array

    Creates an array of longs. Does not coerce array, provided for compatibility with Clojure.

  • make-array

    Construct a JavaScript array of the specified dimensions. Accepts ignored type argument for compatibility with Clojure. ...

  • object-array

    Creates an array of objects. Does not coerce array, provided for compatibility with Clojure.

  • set!

    Used to set vars and JavaScript object fields

  • to-array

    Returns an array containing the contents of coll.

  • to-array-2d

    Returns a (potentially-ragged) 2-dimensional array containing the contents of coll.