Skip to content

API request: a function to unwrap Val #34758

@tkf

Description

@tkf

This is either an API request or a documentation request. It'd be nice to have an API that does

f(::Val{x}) where x = x

If it already exists, it'd be nice to mention it in Val's docstring.

If it does not exist, maybe getindex or get would be a nice function for this? Or maybe add a new function?

This came up in JuliaArrays/StaticArrays.jl#702 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIndicates new feature / enhancement requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions