A unary function is a function that takes one argument. In computer science, unary operator is a subset of unary function.