DEV Community

Judy
Judy

Posted on

Marriage matching--SPL Programming Practice

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.

Try.DEMO
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:

SPL is open-source. You can obtain the source code from GitHub .

Try it free~~

Top comments (1)

Collapse
 
emmanuel_peter_bde7dd0514 profile image
Emmanuel Peter

Let's communicate in WhatsApp send me your WhatsApp number