These are chat archives for rust-lang/rust

May 2015
Ivan Kurnosov
May 19 2015 08:16
Guys, is there a single and actual reference on how to return anonymous functions from functions?
I've found billions of discussions and every one suggests something that is obsolete at the moment already
so what is the official position for that?
What I need: to return a function that: a) captures one variable from the outer scope b) accepts a list c) returns a custom type (a tuple)
Murph Murphy
May 19 2015 15:24 seems to work for me, think that could be adapted to what you're talking about?
Ivan Kurnosov
May 19 2015 19:40
@skeet70 I will try, thanks