Skip to content

Unique key/types helper? #3

@TangentFoxy

Description

@TangentFoxy

A simple function returning a table with a tostring metamethod for displaying the name of the unique identifier.

unique = (name) -> setmetatable {}, __tostring: -> return name
running = unique "running"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions