Define guard sequence and what are the valid guard expressions?

Posted by  Mayank Tripathi
 1040  View(s)
Ratings:
Rate this:
  1. 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