Methods

pushΒΆ

push(s:Stats, k:Any)

Increment the named counter
Source: autoload/Stats.ngs:28

k

the name of the counter to increment

Example

Stats().push("a").push("a").push("b")["a"]  # 2