Function sum-intpub
Source:fn(pub) sum-int ( (f AnyInt) → AnyInt ) { (Foldable f) }
Description
Sum the elements of a Foldable collection of AnyInt values. Spec targets a generic (Add num num | num) constraint; monomorphise to AnyInt for now since the trait-constrained generic :fn path doesn't specialise (Phase 1b open issue). ( (f AnyInt) -> AnyInt ) { (Foldable f) }