Skip to content

tables.take() is defined only for Table and missed for other table containers #12519

Closed
@luav

Description

@luav

tables.take() is defined only for Table and missed for other table containers, though module functions are expected to work properly for all related containers.

Example

import tables

let t = newOrderedTable[string, string]()
var v: string
echo t.take("k", v)

Current Output

Error: type mismatch: got <OrderedTable[system.string, system.string], string, string>

Expected Output

false

Possible Solution

Implement tables.take() for OrderedTable and CountTable.

Additional Information

$ nim -v
Nim Compiler Version 1.0.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions