unarypredikater
A unary predicate is a fundamental concept in formal logic and computer science, specifically within the realm of predicate logic. Unlike binary predicates, which relate two entities (e.g., "x is equal to y"), a unary predicate applies to a single entity, describing a property or attribute that the entity either possesses or does not possess. For example, the predicate "isPrime(n)" evaluates to true if the input *n* is a prime number and false otherwise. This type of predicate is often used to define conditions or constraints in logical expressions.
In predicate logic, unary predicates are expressed as functions that return a boolean value (true or false)
Unary predicates are widely used in programming, particularly in functional programming languages like Haskell or Prolog,