• they/them

 
meow.


discordf
backslash_phi
matrix
backslash_phi:matrix.org

phi
@phi

doing Things in rustf

fn main() {
  let v = vec![1,2,3,4];
  let m = Map::gen((|x| x+1,));
  let n = Map::gen((|x| x*2,));
  let j = Join::gen((m,n));
 
  println!("{:?}", v.iterate(j));
}
[4, 6, 8, 10]

phi
@phi

u cannof grasp teh True Form of this mess I made

fn main() {
  let v = vec![1,2,3,4];
  let w = iterate!(v => map(|x| x+1) map(|x| x*2));
  println!("{:?}", w);
}
[4, 6, 8, 10]

You must log in to comment.

in reply to @phi's post:

Pinned Tags