You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trait Alternative {
use Applicative;
functionor($otherAlternative);
functionzeroOrMore(); // I think this name is more intuitive than `many`functiononeOrMore(); // I think this name is more intuitive than `some`
}
The text was updated successfully, but these errors were encountered:
In Haskell
Alternative
looks like this: https://hackage.haskell.org/package/base-4.6.0.1/docs/Control-Applicative.html#t:Alternative. I think the way that I'd cast this in PHP is with the following trait:The text was updated successfully, but these errors were encountered: