14- Combining Predicates

2:10 2 Àwọn Àkọ́lé 2 Àwọn àgbègbè 41 àwọn àgbègbè

Àwọn Àkọ́lé

Àwọn àgbègbè

  1. 0:03

    So we talked about composing functions to build more complex and interesting functions We can also combine predicates to build more complex predicates. Let me show you so I'm going to declare two predicates a predicate of a string called ha…

  2. 1:53

    Now, what about the negate method? That is pretty straightforward. So we call the negate method and this returns a new predicate that does the opposite of the first predicate. So this is how we can combine predicates.