Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions as arguments #7

Open
timjb opened this issue Apr 13, 2016 · 1 comment
Open

Functions as arguments #7

timjb opened this issue Apr 13, 2016 · 1 comment

Comments

@timjb
Copy link
Contributor

timjb commented Apr 13, 2016

I wanted to use functions as arguments in the examples. When I entered the examples below, the following message appeared:

Evaluation failed.
This should not normally happen. Cannot evaluate function application. Left-hand side is not a function! Please report an issue.

Implicit parameters:

let f x = ?g x
in f 3

Dataflow computations:

let f x g = g (prev x) + (prev g) x
in f 3
@tpetricek
Copy link
Member

Thanks for reporting this - the issue is that the user interface can currently let the user enter only numbers in the textboxes. In both of the samples above, the user would need to enter a function value (as a value for the implicit parameter ?g or as the value for the stream).

This would be a nice feature to add - I suppose the GUI could detect what type you need and parse the input (rather than just treating it as a number currently).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants