AngouriMath
SuperSwitch
Method with 2 overloads
SuperSwitch(``0,``0,System.Func{AngouriMath.Entity.Number.Integer,AngouriMath.Entity.Number.Integer,AngouriMath.Entity.Number.Integer},System.Func{AngouriMath.Entity.Number.Rational,AngouriMath.Entity.Number.Rational,AngouriMath.Entity.Number.Rational},System.Func{AngouriMath.Entity.Number.Real,AngouriMath.Entity.Number.Real,AngouriMath.Entity.Number.Real},System.Func{AngouriMath.Entity.Number.Complex,AngouriMath.Entity.Number.Complex,AngouriMath.Entity.Number.Complex})
Summary
This function serves not only convenience but also protects from unexpected cases, for example,
if a new type added
SuperSwitch(AngouriMath.Entity.Number,AngouriMath.Entity.Number,System.Func{AngouriMath.Entity.Number.Integer,AngouriMath.Entity.Number.Integer,``0},System.Func{AngouriMath.Entity.Number.Rational,AngouriMath.Entity.Number.Rational,``0},System.Func{AngouriMath.Entity.Number.Real,AngouriMath.Entity.Number.Real,``0},System.Func{AngouriMath.Entity.Number.Complex,AngouriMath.Entity.Number.Complex,``0})
Summary
This function serves not only convenience but also protects from unexpected cases, for example,
if a new type added
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online