Helper functions in various languages