orangy
fun check(inputs: Set<String>, outputs: Set<String>, link: String.() -> Set<String>): Boolean = inputs.flatMapTo(hashSetOf(),link) == outputs