Math.atan2
, String.Replace
, Observable.pairwise
and Observable.scan
proxies.Bounds checks are introduced on Array functions to match .NET behavior so they no longer return undefined values which could lead to hard to find bugs. This breaks previous code which uses the Array type as a sparse array. For using JavaScript operations on Arrays, casting to EcmaScript.Array
or using the .ToEcma()
extension method is recommended.
Support for indexed properties. Examples:
"item" =@ T<obj> |> Indexed T<int> // has inline "$this[$index]"
"prop" =@ T<obj> |> Indexed T<int> // has inline "$this.prop[$index]"
A property named "item" is handled specially for creating the default inline, the object itself gets indexed.
Support for type constraints. Example:
Generic - fun b -> "test" => (b |> WithConstraint [ T<System.Collections.IEnumerable> ]) ^-> T<unit>
The WithConstraint
function destructively sets the constraints on the type parameter. Use it anywhere but only once inside the function passed to the Generic helper.
Can’t find what you were looking for? Drop us a line.