Skip to content

Commit

Permalink
add left_outer_join module
Browse files Browse the repository at this point in the history
  • Loading branch information
cdouglas committed Dec 5, 2023
1 parent 1c9f1c3 commit 1d2402d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions basen/src/left_outer_join.hf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
lhs = mod[0]
-> tee();
rhs = mod[1]
-> tee();

lhs -> [0]joined;
rhs -> [1]joined;

joined = join::<'tick,'static>()
-> map(|(k, (lhs, rhs))| (k, (lhs, Some(rhs))))
-> combined;

lhs -> [pos]missed;
rhs -> map(|(k, _v)| k) -> [neg]missed;

missed = anti_join::<'tick,'static>()
-> map(|(k, v)| (k, (v, None)))
-> combined;

combined = union()
-> mod;

0 comments on commit 1d2402d

Please sign in to comment.