Skip to content

validate sum of list #78

Open
@cueckoo

Description

@cueckoo

Originally opened by @codesuki in cuelang/cue#78

Is there any way to validate if a list sums to a specific value?
Let's say I have a list of floats that need to sum to 1.0.
Reading through the docs I couldn't find anything.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions