Daff - Data Diff

daff.View

Interface for interpreting cell contents. In most cases the implementation will be entirely trivial.

Type: interface

Methods:

equals (d1 : Dynamic, d2 : Dynamic) : Bool
  Compare two cells.

Parameters:

  • d1 the first cell
  • d2 the second cell

Returns: true if the cells are equal

getTable (t : Dynamic) : Table
hashExists (h : Dynamic, str : String) : Bool
  Check if a hash/map contains a given key

Parameters:

  • h hash/map to check
  • str key to check

Returns: true if hash/map contains the given key

hashGet (h : Dynamic, str : String) : Dynamic
  Check if a hash/map contains a given key

Parameters:

  • h hash/map to check
  • str key to check

Returns: true if hash/map contains the given key

hashSet (h : Dynamic, str : String, d : Dynamic) : Void
  Add something to a native hash/map object.

Parameters:

  • h the hash/map
  • str the key to use
  • d the value to use
isHash (h : Dynamic) : Bool

Parameters: h possible hash/map to check

Returns: true if h is a hash/map

isTable (t : Dynamic) : Bool
makeHash () : Dynamic
  Create a native hash/map object.

Returns: the newly created hash/map, or null if not available

toDatum (str : String) : Dynamic
  Convert a string to a cell.

Parameters: str the string

Returns: the string converted to a cell

toString (d : Dynamic) : String
  Convert a cell to text form.

Parameters: d a cell

Returns: the cell in text form

wrapTable (t : Table) : Dynamic