-
Notifications
You must be signed in to change notification settings - Fork 16
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
Easier way to make anonymous functions #25
Comments
Can you give a more realistic example, what you wrote here works already without |
Yeah, I'm thinking intermediate variables as well
|
Is that the same as this? @chain 1 begin
y-> begin
x = 500
z = 78
y + x * z
end
end |
hmmm yes it is. That's definitely easier. Though I guess that solution incurs a compilation cost that could be avoided if we let things happen in the normal scope. (This goes against my It also enables the user to leave the world of |
@chain 1 begin
begin
x = 500
z = 78
_ + x * z
end
end |
Oh no kidding. I thought I tried that. Excellent! |
I'm imagining somehtin like
@aside
but which takes in_
and returns whatever the expression returns.I've been thinking of doing an
@anon
macro in DataFramesMeta, since the infrastructure is all there to do it withSymbol
s. However this would need to be different, special-casing_
.The text was updated successfully, but these errors were encountered: