add chooseIn + chooseOut
This commit is contained in:
parent
c33cfc78c5
commit
12bb82d295
1 changed files with 4 additions and 0 deletions
|
|
@ -403,6 +403,10 @@ export const chooseInWith = (pat, xs) => {
|
||||||
*/
|
*/
|
||||||
export const choose = (...xs) => chooseWith(rand, xs);
|
export const choose = (...xs) => chooseWith(rand, xs);
|
||||||
|
|
||||||
|
// todo: doc
|
||||||
|
export const chooseIn = (...xs) => chooseInWith(rand, xs);
|
||||||
|
export const chooseOut = choose;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Chooses from the given list of values (or patterns of values), according
|
* Chooses from the given list of values (or patterns of values), according
|
||||||
* to the pattern that the method is called on. The pattern should be in
|
* to the pattern that the method is called on. The pattern should be in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue