vecsubsum

Sum of the subvectors elements

Arguments

  1. Vector
  2. Integer lenght of the result

Output

Integer sum

Examples

vecsubsum