v0.1.0
This early-stage version may not works on Java platform.
Features added
Add contexts.GivenContext. Which can does some provide/inject like work, passing variables between two non-depended functions, in a type-safe way.
Add math.dsl, provides some math operator and pre-defined values.
- method
x over yand operatorx /-/ yfor any two numeric valuexandy. Like/but always do calc in double. - operator
x *^ yfor any two numeric valuexandy. Calcs themath.pow(x, y). - method
x.asPercentagefor any two numeric valuex. Power the valuexwith100so that make it from a basic number to a percentage literal. (like1.asPercentageis100,0.55.asPercentageis55.0,1.14514.asPercentageis114.514)
Add data.IEncapsulateValue and data.EncapsulateValue, extensions Any makes a value x: T can be converted to Some, Left or Right etc using suffix method.
Add stacks.withCurrentStack makes it easier to get stack traces.
Add throwable.ThrowableExtensions makes it eaiser to get an exception's full error reporting message as String.
Features that NOT recommended to use (WIP or very unstable)
count.NumericCount, a class moved from Morny Coeur. Not recommended due to a bad design.
random.*, random utils. Not recommended due to WIP.