Skip to content

add option to force type inference #5

@freeman-lab

Description

@freeman-lab

Because we handle both flat arrays and nested arrays, and both single float values and rgb triplets, there is an unavoidable ambiguity when passing something like

[[a,b,c],[a,b,c],[a,b,c],[a,b,c]]

Is that a 4x3 grid of numbers, or a 4x1 grid of rgb values?

A simple solution is to add a type option that, if provided, forces one form of type inference or the other, then it matter's less which we do by default (currently, treat them as rgb).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions