Removal of reserved fields (Last, First, Address, etc.) impossible:G contains: 'Badros' true G contains: 'Genius' true G contains: '341' true G contains: 'idiot' false G key: 'Occupation' contains: 'CSE341 Professor' true
(G remove: 'First') display: Transcript.Note Attachment:
(G remove: 'Occupation') display: Transcript.Badros, Greg xxxx 25th NE Seattle, WA 98115 (206) 441-1234 Letter: G Occupation: CSE341 Professor Status: Deity and Genius
Badros, Greg xxxx 25th NE Seattle, WA 98115 (206) 444-1234 Letter: G Status: Deity and Genius
G set: 'IQ' value: '347'; display: Transcript.Print out phone numbers with (206):
Badros, Greg xxxx 25th NE Seattle, WA 98115 (206) 444-1234 IQ: 347 Letter: G Status: Deity and Genius
(AB find: [ :x | x key: 'Phone' contains: '(206)' ]) display: Transcript.Print out all cards with string 'Bad':
----------------------------------------------------------- Aldrich, Jonathan Chateaux Suite 11 Seattle, WA 98105 (206) 555-1234 Letter: J Occupation: CSE143 Professor Status: Genius Badros, Greg xxxx 25th NE Seattle, WA 98115 (206) 444-1234 IQ: 347 Letter: G Status: Deity and Genius Englebart, Douglas X_Coord 45 Y_Coord 15 Bremerton, WA 99878 (206) ClickMe Letter: E Occupation: Ex-Inventor Status: Dork Yasuhara, Ken xxxx Brooklyn Ave NE Apt 315 Seattle, WA 98105 (206) 444-4321 Letter: K Occupation: CSE341 TA and Graduate Student Status: Aspiring Genius -----------------------------------------------------------
(AB find: [ :x | x contains: 'Bad' ]) display: Transcript.Let's get the AddressBook containing CSE341 Students who are also TAs:
----------------------------------------------------------- Badros, Greg xxxx 25th NE Seattle, WA 98115 (206) 444-1234 IQ: 347 Letter: G Status: Deity and Genius -----------------------------------------------------------
(AB find: [ :x | ((x key: 'Occupation' contains: 'CSE341 Student') & (x contains: 'TA'))]) display: Transcript.Display everyone living in Washington who is an ass-kissing bacterium:
----------------------------------------------------------- Shukla, Bina 3345 Veranda Dr. Pleasantville, NY 10238 (606)555-1234 Letter: M Occupation: CSE143 TA and CSE341 Student Status: Aspiring Genius -----------------------------------------------------------
Do the same thing with intersection: instead:(AB find: [ :x | (x key: 'State' contains: 'WA') & ((x key: 'Hobby' contains: 'Ass Kissing') & (x contains: 'Bacterium')) ]) display: Transcript.----------------------------------------------------------- Hsu, Eugene 615 6th St Apt 302 Kirkland, WA 98033 (425)827-7445 Hobby: Ass Kissing Letter: H Occupation: CSE341 Student Status: Bacterium -----------------------------------------------------------
Union CSE143 TA's and CSE341 TAs:((AB find: [ :x | x key: 'State' contains: 'WA' ]) intersection: ((AB find: [ :x | x key: 'Hobby' contains: 'Ass Kissing' ]) intersection: (AB find: [ :x | x contains: 'Bacterium' ]))) display: Transcript.----------------------------------------------------------- Hsu, Eugene 615 6th St Apt 302 Kirkland, WA 98033 (425)827-7445 Hobby: Ass Kissing Letter: H Occupation: CSE341 Student Status: Bacterium -----------------------------------------------------------
((AB find: [ :x | (x contains: 'CSE143 TA')]) union: (AB find: [ :x | (x contains: 'CSE341 TA')])) display: Transcript.Print an addressbook with all students removed:
----------------------------------------------------------- Shukla, Bina 3345 Veranda Dr. Pleasantville, NY 10238 (606)555-1234 Letter: M Occupation: CSE143 TA and CSE341 Student Status: Aspiring Genius Yasuhara, Ken xxxx Brooklyn Ave NE Apt 315 Seattle, WA 98105 (206) 444-4321 Letter: K Occupation: CSE341 TA and Graduate Student Status: Aspiring Genius -----------------------------------------------------------
((AB find: [ :x | x key: 'Occupation' contains: 'Student']) subtractFrom: AB) display: Transcript.A demo of intersection; should display cards with Letter: H, I, J:
----------------------------------------------------------- Ackermann, Wilhelm 1122 222nd St SW Theoryville, OR 99246 (503)555-2323 Letter: A Status: Genius Aldrich, Jonathan Chateaux Suite 11 Seattle, WA 98105 (206) 555-1234 Letter: J Occupation: CSE143 Professor Status: Genius Badros, Greg xxxx 25th NE Seattle, WA 98115 (206) 444-1234 IQ: 347 Letter: G Status: Deity and Genius Boole, Mister 1123 222nd St SW Theoryville, OR 99246 (503)555-7890 Letter: B Status: Genius Chomsky, Noam 714 85th Ave N Atlantis, State of Mind 12345 1-900-Talk2Me Letter: C Status: Genius Dijkstra, Captain Deck 3 Room 1 Starship Enterprise, Alpha Quadrant 001 Pickard Alpha One Letter: D Occupation: Starship Captain Status: Genius Englebart, Douglas X_Coord 45 Y_Coord 15 Bremerton, WA 99878 (206) ClickMe Letter: E Occupation: Ex-Inventor Status: Dork Fourier, Analysis 23900 54th Avenue West Theoryville, OR 99246 901-744-4256 Letter: F Status: Genius Icarus, Kid Davy Jones Locker North Sea, Atlantic Ocean 00001 555-555-5555 Letter: I Occupation: Flying too high for his own darn good Status: Dead Phan, Diane 23902 46th Avenue West Mountlake Terrace, WA 98043 (425)778-8939 Letter: P Occupation: Software Engineer at ATT Wireless Status: Sleepy -----------------------------------------------------------
(AB1 intersection: AB2) display: Transcript.----------------------------------------------------------- Aldrich, Jonathan Chateaux Suite 11 Seattle, WA 98105 (206) 555-1234 Letter: J Occupation: CSE143 Professor Status: Genius Hsu, Eugene 615 6th St Apt 302 Kirkland, WA 98033 (425)827-7445 Hobby: Ass Kissing Letter: H Occupation: CSE341 Student Status: Bacterium Icarus, Kid Davy Jones Locker North Sea, Atlantic Ocean 00001 555-555-5555 Letter: I Occupation: Flying too high for his own darn good Status: Dead -----------------------------------------------------------