Method chaining

Useful to compose functions from left-to-right.

Use of the operators:

  • S3: |> or %>%

  • R6: $

s$push(44)$push(32)$pop()
#> [1] 32