Skip to content

Handling function types? 🤔 #1

@zaataylor

Description

@zaataylor

Is it possible to get this to work with function types as well (in a relatively "clean" way)? I'm picturing a case where a user passes in a slice of functions, as well as slices containing potential args for those functions.

They could then iterate over the product elements, "unpacking" the returned []any slice into fn, arg1,arg2,...,argN, then applying these args to the function like fn(arg1, arg2,...,argN).

If I can't get this to work, I'll have to walk back my "arbitrary types" claim in the README.

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