I was happy to see explicit support for reduce (a.k.a. fold) in the language.
Dim numbers%() = {1, 2, 3, 4, 5}
Dim n = Aggregate a In numbers Into Sum()
Thanks to Amanda Silver for helping me figure out why type inferencing wasn't acting the way I expected.
Posted
Nov 14 2007, 08:57 PM
by
don-box