InterviewSolution
Saved Bookmarks
| 1. |
Define Guard Sequence And What Are The Valid Guard Expressions? |
|
Answer» 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. 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. |
|