A set of helper functions known from functional programming