Skip to content

Support primitive functions in more contexts #30

@stuhlmueller

Description

@stuhlmueller

This works:

var exp = function(x){return Math.exp(x)}
var xs = [1, 2, 3];
map(exp, xs)

This doesn't:

var xs = [1, 2, 3];
map(Math.exp, xs)

It should be possible to use primitive functions in all contexts where compound (webppl) functions are supported.

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