Skip to content

Multiplying an entire array with a single value #60

@snordgren

Description

@snordgren

For writing, for example, a method that scales a data set, it would be useful to be able to write something along the lines of

(* 2 [2, 3])

and get the expected result [4, 6], as well as performing other arithmetic operations or functions where one argument is a single value applied to all elements of an array argument.

I have implemented this feature to familiarize myself with the Huo codebase, it can be found at my constant-array-expansion branch of my fork. Feedback/issues appreciated!

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