DEFINE GUARD SEQUENCE AND WHAT ARE THE VALID GUARD EXPRESSIONS?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 513  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.

Answer

NEWSLETTER

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