mirror of
https://codeberg.org/uzu/strudel
synced 2026-10-11 18:51:34 -04:00
readded chooseIn due to mondough using it
This commit is contained in:
@@ -599,6 +599,8 @@ export const chooseInWith = (pat, xs) => {
|
||||
*/
|
||||
export const choose = (...xs) => chooseWith(rand, xs);
|
||||
|
||||
export const chooseIn = (...xs) => chooseInWith(rand, xs);
|
||||
|
||||
/**
|
||||
* 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