Implement ~> and ~>> (resolves #27)