Skip to content

Cannot call functions off of a map #123

@huynhphuchuy

Description

@huynhphuchuy

I got an error with Map function while List function is working well

z = [
  "Ghost",
  57.3,
  function (x1) {
    print("X * X")
    return x * x
  }
]

zz = {
    "name": "Ghost",
    "value": 57.3,
    "handler": function(zzz) { 
        print("zzz * zzz")
        return zzz * zzz
    }
}

print(z[2](5))
print(zz.handler(6))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions