DEFINE GUARD SEQUENCE AND WHAT ARE THE VALID GUARD EXPRESSIONS?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 586  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    Define guard sequence and what are the valid guard expressions?

    Erlang function clauses can be protected with guards; a clause can be protected only if the guard holds. It is a sequence of guards, separated by semicolon (;), and a guard is a sequence of guard expressions separated by comma (,). The guard sequence is true if at least one of the guards is true.

      Modified On Mar-28-2018 04:28:20 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!