Skip to content

Instantly share code, notes, and snippets.

@griwes

griwes/foo.cpp Secret

Last active August 25, 2016 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save griwes/79550952c03b21f0191e399479b05b01 to your computer and use it in GitHub Desktop.
Save griwes/79550952c03b21f0191e399479b05b01 to your computer and use it in GitHub Desktop.
/* let mut v = vec![1, 2, 3];
for i in &v {
println!("{}", i);
v.push(34); // sorry, no can do
} */
let mutable v = vector{ 1, 2, 3 };
v ->> λi {
print(i);
// v.push(34); // sorry, no can do
async v.push(34); // okay, but only after this mapping actually ends
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment