Main Page/Topic Datatypes

    From Programming in RED

    MAP

    List of resources
    Where Link
    Reference https://github.com/red/docs/blob/master/en/datatypes/map.adoc
    Blog https://www.red-lang.org/2015/06/054-new-datatypes-exceptions-and-set.html

    Notes:

    • Map keys do not have order, could appear in separate order at each WORDS-OF
    • You can use:

    Path notation.. ..but not positional also: `select`, `put`, `clear`, `remove/key`

    • It can be created either using a proto but differently from object you can run calculation on arguments
    • it can be careted using literal form like a: #(a: 22 b: 33) , it is the same of a: make map! [a: 22 b: 33] the make notation needs a block
    • You can use a nested form like:

    m: #(10 (a: 22 b: 33))

    Using this form you create a table like element with ROW ID and columns, which is searched very fast. Access it using m/10/a

    Object

    Word

    Point2D

    Point3D

    Point4D

    Pair

    Percent

    Set-Word

    Get-Word

    Path

    GetPath

    Integer

    Float

    Money