Let there be a set A = {1,2,3}. The goal is to compute all bijections on AxA. It should be of type Set<Function<T,T>> so that in the driver code, we can use the "apply" function.
I have tried a lot and have also figured out that the bijections will be the permutations of set A and have also computed that, but I'm unable to write code to create a Set of Functions(Mappings) for this.
It's a homework assignment, so any hint would be appreciated. Also, we have to use Java 8 functional programming features.
Try this.
output: