Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -41,16 +41,19 @@ BEGIN
|
|||
OD;
|
||||
result
|
||||
END # + # ;
|
||||
# construct the associative arrays for the task #
|
||||
REF AARRAY a := INIT LOC AARRAY;
|
||||
REF AARRAY b := INIT LOC AARRAY;
|
||||
a // []STRING( "John", "Bob", "Mary", "Serena" );
|
||||
b // []STRING( "Jim", "Mary", "John", "Bob" );
|
||||
# find and show the symetric difference of a and b #
|
||||
REF AARRAY c := ( a - b ) + ( b - a );
|
||||
REF AAELEMENT e := FIRST c;
|
||||
WHILE e ISNT nil element DO
|
||||
print( ( " ", key OF e ) );
|
||||
e := NEXT c
|
||||
OD;
|
||||
print( ( newline ) )
|
||||
|
||||
BEGIN # task #
|
||||
# construct the associative arrays for the task #
|
||||
REF AARRAY a := INIT LOC AARRAY;
|
||||
REF AARRAY b := INIT LOC AARRAY;
|
||||
a // []STRING( "John", "Bob", "Mary", "Serena" );
|
||||
b // []STRING( "Jim", "Mary", "John", "Bob" );
|
||||
# find and show the symetric difference of a and b #
|
||||
REF AARRAY c := ( a - b ) + ( b - a );
|
||||
REF AAELEMENT e := FIRST c;
|
||||
WHILE e ISNT nil element DO
|
||||
print( ( " ", key OF e ) );
|
||||
e := NEXT c
|
||||
OD;
|
||||
print( ( newline ) )
|
||||
END
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue