mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-31 21:27:07 -04:00
add chooseIn + chooseOut
This commit is contained in:
@@ -403,6 +403,10 @@ export const chooseInWith = (pat, 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
|
||||
* to the pattern that the method is called on. The pattern should be in
|
||||
|
||||
Reference in New Issue
Block a user