https://github.com/berquerant/multicover
cli to output the set to which each element belongs
https://github.com/berquerant/multicover
rust
Last synced: about 1 year ago
JSON representation
cli to output the set to which each element belongs
- Host: GitHub
- URL: https://github.com/berquerant/multicover
- Owner: berquerant
- Created: 2021-05-02T06:52:11.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-20T07:35:35.000Z (about 1 year ago)
- Last Synced: 2025-04-20T08:38:01.458Z (about 1 year ago)
- Topics: rust
- Language: Rust
- Homepage:
- Size: 81.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# multicover
Output the set to which each element belongs.
## Usage
### From stdin
``` shell
% (echo 1,2; echo 2,) | multicover
u 10 01 11
1 1 0 0
2 1 1 1
```
### From files
``` shell
% seq 3 > a.log
% seq 2 > b.log
% seq 2 4 > c.log
% multicover a.log b.log c.log
u 100 010 001 110 101 011 111
3 1 0 1 0 1 0 0
1 1 1 0 1 0 0 0
2 1 1 1 1 1 1 1
4 0 0 1 0 0 0 0
```
### Range
``` shell
% multicover a.log b.log c.log -b 2 -d 2
u 110 101 011
4 0 0 0
1 1 0 0
2 1 1 1
3 0 1 0
```
### Decimal index
``` shell
% multicover a.log b.log c.log -i
u 4 2 1 6 5 3 7
2 1 1 1 1 1 1 1
3 1 0 1 0 1 0 0
1 1 1 0 1 0 0 0
4 0 0 1 0 0 0 0
```