Home > DeveloperSection > Interviews > Define guard sequence and what are the valid guard expressions?

Posted on    June-25-2015 11:26 PM

 erlang Functional Programming  Concurrent Programming  erlang 
 1 Answer(s)
  454  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    June-25-2015 11:26 PM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick