![]() |
| ||||
Navigation |
Synopsis The reflexive transitive closure of a binary relation.
Syntax
Exp *
Types
Description Reflexive transitive closure is defined by repeated composition of a relation.
If we define for a given relation R:
Examples
rascal>{<1,2>, <2,3>, <3,4>}*;
rel[int,int]: {
<4,4>,
<1,4>,
<2,2>,
<2,4>,
<1,3>,
<2,3>,
<1,2>,
<3,4>,
<1,1>,
<3,3>
}
Questions
Question [1].
![]() ![]()
Question [2].
![]() ![]() ![]() |