Sha256: cfbe013394bcc8aa708af3853f2b7d3ec17bf615148e71b7f59f34098aa6ed1b

Contents?: true

Size: 967 Bytes

Versions: 3

Compression:

Stored size: 967 Bytes

Contents

.TH Concat
.PP
String concatenation
.SH Signature
.PP
.RS
.nf
concat(expr: AttrName|(Tuple->Numeric)) -> Aggregator
.fi
.RE
.SH Examples
.PP
.RS
.nf
concat(:name)
.fi
.RE
.PP
.RS
.nf
concat(:name, between: ', ')
.fi
.RE
.PP
.RS
.nf
concat(between: ', '){|t| t.name }
.fi
.RE
.PP
.RS
.nf
concat(->(t){ t.name.upcase }, between: ', ')
.fi
.RE
.SH Description
.PP
Concatenates string representations of input values.
.SH Implementation notes
.PP
This aggregate function can be applied to any data type, not only String
attributes. Ruby's \fB\fCto_s\fR will be used on values prior to concatenation.
.PP
The options are:
.RS
.IP \(bu 2
\fB\fCbefore\fR starts the resulting string (defaults to '')
.IP \(bu 2
\fB\fCafter\fR ends the resulting string (defaults to '')
.IP \(bu 2
\fB\fCbetween\fR is used between each value
.RE
.PP
As of current Alf version, the order in which the values are concatenated
is not guaranteed. So far, this function is thus non\-deterministic.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alf-shell-0.16.4 doc/man/concat.man
alf-shell-0.16.0 doc/man/concat.man
alf-shell-0.15.0 doc/man/concat.man