Not sure what you mean by two types of functions. Maybe you mean functions that return a value and functions that don't ( procedures in some languages).