As preparation for the nth Exodus, Noah decides to write a program that will decide If he will let animals on his ark. However, Noah wants to go back to grass roots. Thus he decides that the program should be as small and as simple as possible.
Recreate the Contrabulous Choosematron, in a way that follows evangelical stories.
The program is simple, and elegant, and takes in 2 inputs:
The species of animal [String]
and The animal's gender [boolean]
The program then puts out Either 'Y' or 'N', Which determines whether or not the given animal is allowed onto the ark.
Only one Animal of each species and gender is allowed on the ark. No more.
Your output can be any set of boolean values (true false, yes no, y n, yin yang) so long as they're easily distinguishable.
If your program should want to accept a list of input, rather than use STDIN, that's fine. However, each output has to be in corresponding order of the input (FIFO), as well as be in the exact same format as the input.
This is a golf, so the lowest byte count wins, good luck!!!!
"Monkey with symbols" false<
This is valid, as your program doesn't need to distinguish that
monkey with symbols are the same thing species, however,
monkey are very much the same thing, and so the last critter would be denied.