I'm new to ECL and having trouble trying to understand RIGHT and LEFT keywords (used in DEDUP, GROUP and other functions). How do they work? The ECL reference guide has a single paragraph about what it's supposed to do.
for example, what is it doing in this code?
MyRec := RECORD
STRING1 Value1;
STRING1 Value2;
END;
SomeFile := DATASET([{'C','G'},
{'C','C'},
{'A','X'},
{'B','G'},
{'A','B'}], MyRec);
Dedup2 := DEDUP(Val2Sort, LEFT.Value2 = RIGHT.Value2);