-
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unneeded
@param
jsdoc annotations for tuple and property
- Loading branch information
Showing
3 changed files
with
8 additions
and
12 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 |
---|---|---|
@@ -1,12 +1,10 @@ | ||
const iota = (num: number) => [...Array(num)].map((v, idx) => idx); | ||
const joiner = (num: number, fn: (v: number) => string, ch: string) => | ||
export const iota = (num: number) => [...Array(num)].map((v, idx) => idx); | ||
export const joiner = (num: number, fn: (v: number) => string, ch: string) => | ||
iota(num) | ||
.map(fn) | ||
.join(ch); | ||
const commas = (num: number, fn: (v: number) => string) => joiner(num, fn, ','); | ||
export const commas = (num: number, fn: (v: number) => string) => joiner(num, fn, ','); | ||
|
||
const arbCommas = (num: number) => commas(num, v => `arb${v}`); // arb0,arb1,... | ||
const txCommas = (num: number) => commas(num, v => `T${v}`); // T0,T1,... | ||
const txXor = (num: number) => joiner(num, v => `T${v}`, '|'); // T0|T1|... | ||
|
||
export { iota, joiner, commas, arbCommas, txCommas, txXor }; | ||
export const arbCommas = (num: number) => commas(num, v => `arb${v}`); // arb0,arb1,... | ||
export const txCommas = (num: number) => commas(num, v => `T${v}`); // T0,T1,... | ||
export const txXor = (num: number) => joiner(num, v => `T${v}`, '|'); // T0|T1|... |
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
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