I tried using the C# approach:
- Code: Select all
nums = List<of int>({1,2,3})
sum = nums.aggregate( do(a as int, b as int) = a + b)
print sum
However, I think that this would require an additional standard library extension method. Is that correct?
I'm very new to Cobra. So if I am missing something basic please be sure to let me know.
Thanks,
bp