On Tue, Jun 5, 2012 at 6:20 PM, Patrick Walton <[email protected]> wrote:
> Hi everyone,
>
> Here's a revised lambda syntax tweak proposal. It's gotten feedback from
> several, so I think it's time to present it more generally.


Just a quick question: Can I pass in a multi-statement lambda to a
function without using "do" or "for", and if so what does it look
like?

I'm guessing something like this, but I didn't see it spelled out:

foo( |x| {
   let y = x+1;
   y+1
});

Seb
-- 
Sebastian Sylvan
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to