forked from rajasekarv/vega
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bf245e
commit 0b69aab
Showing
4 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use vega::*; | ||
use std::sync::Arc; | ||
|
||
fn main() -> Result<()> { | ||
let sc = Context::new()?; | ||
let col1 = vec![1, 2, 3, 4, 5, 10, 12, 13, 19, 0]; | ||
|
||
let col2 = vec![3, 4, 5, 6, 7, 8, 11, 13]; | ||
|
||
let first = sc.parallelize(col1, 4); | ||
let second = sc.parallelize(col2, 4); | ||
let ans = first.subtract(Arc::new(second)); | ||
|
||
for elem in ans.collect().iter() { | ||
println!("{:?}",elem); | ||
} | ||
|
||
Ok(()) | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters