Currently in the stdlib we have: ``` function foldl<Q>(Q startValue, FoldClosure<T, Q> predicate) returns Q function toString() returns string let fold = foldl<string>("[", (i, q) -> q + (i castTo int).toString() + ",") return fold.substring(0, fold.length()-1) + "]" ``` I would like to not have to use the generic param `<string>` because the type could be inferred by the first parameter `"["` which is of type `Q`.
Activity
test for #657
peq commentedon Jun 13, 2018
Fixed with #673
Type-checking refactor (WIP) (#673)