This file contains hidden or 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
let test = [1, 2, 3, 3, 4, 4, 4, 4] | |
const getTotal = list => { | |
let result = new Map() | |
list.map(e => { | |
let total = result.get(e) | |
if (total !== undefined) { | |
result.set(e, total + 1) | |
} else { |
This file contains hidden or 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
all: check doc build build-release test | |
build: | |
time cargo build --all | |
build-release: | |
time cargo build --all --release | |
check: | |
cargo check --all | |
doc: | |
cargo doc --all |