Implement some ore of /mine in coffeescript