Dotty Documentation

0.15.0-bin-SNAPSHOT

final class First
extends Filter

Used to get the first element of arrays and strings:

{% assign array = "1,2,3,4,5" | split: "," %}
{{ array | first }}

The above snippet will render "1"

[-] Constructors

First ( )

[-] Members

[+] override def apply ( value: Any , params: [ AnyRef ] ) : AnyRef