Hacker News new | past | comments | ask | show | jobs | submit login

p is a predicate, which is a function mapping elements of some type to true/false (booleans). A total function is a function which is defined for all possible inputs. So a total predicate is a function that maps all possible inputs to either true or false.



For real numbers, f(x)=x² is a total function, but g(x)=√x is not, because g is undefined for x<0




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: