Sha256: 0fffcf34fd99ad5c95e9d3fb3ffa0c7d4f2ba3458bfaa0f5476aa350709e8dc2
Contents?: true
Size: 504 Bytes
Versions: 3
Compression:
Stored size: 504 Bytes
Contents
.TH Sum .PP Arithmetic sum .SH Signature .PP .RS .nf sum(expr: AttrName|(Tuple\->Numeric)) \-> Aggregator .fi .RE .SH Examples .PP .RS .nf sum(:qty) .fi .RE .PP .RS .nf sum{|t| t.qty * t.price } .fi .RE .PP .RS .nf sum(\->(t){ t.qty * t.price }) .fi .RE .SH Description .PP Computes \fB\fCv1 + v2 + ... + vn\fR\&. .SH Implementation notes .PP This aggregate function should only be used with numeric types. As of current Alf version, it does not aggregate empty sets correctly on non\-numeric data types.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alf-shell-0.16.3 | doc/man/sum.man |
alf-shell-0.16.2 | doc/man/sum.man |
alf-shell-0.16.1 | doc/man/sum.man |