Code: Select all
helps(Person,Modifier) :- high(Person,Taxon),decreases(Modifier,Taxon).
helps(Person,Modifier) :- low(Person,Taxon),increases(Modifier,Taxon).
hurts(Person,Modifier) :- low(Person,Taxon),decreases(Modifier,Taxon).
hurts(Person,Modifier) :- high(Person,Taxon),increases(Modifier,Taxon).
Code: Select all
take(Person,Modifier):- exclude(helps(Person,Modifier),=,hurts(Person,Modifier)).
take(Person,Modifier):- remove(helps(Person,Modifier),is,hurts(Person,Modifier)).
take(Person,Modifier):- except(helps(Person,Modifier),hurts(Person,Modifier)).
Related: Any plan to add Linq to your implementation? Or even helps(Person,Modifier).ToArray().