Marriage matching

 

Romeo is an NS GSOH M Veronian (non-smoking, living in Verona, very humorous male). Based on Juliet's WLTM (Would Like to Meet) condition, is Romeo suitable?

The has table provides individual personality traits for each person:

The WLTM table displays the personality traits that each person expects to match:

Please find all suitors who meet Juliet's requirements.


A

1

=T("has.txt")

2

=T("Wltm.txt")

3

=A1.group(Name)

4

=A2.select(Name=="JULIET").(QUALITY)

5

=A3.select(~.(Has_Quality).pos(A4)!=null).(Name)

https://try.esproc.com/splx?4Ja

A1 reads out each person's personality traits, A2 reads out their demand conditions.

A3 groups the candidates'personality traits by name, and A4 lists Juliet's required personality traits:

In SPL, use A.pos(B)!=null can determine whether A contains all members of B in two sequences. A5 Selects the group that meets Juliet's requirements and list their names: