Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enrich return type for Representable.apply and add doctests (#2426)
The `Representable.apply` method was discarding information about its return type in a way that made it not very helpful for some use-cases. I believe that the change that I made to it makes it strictly more useful in a compatible way, but let me know if that doesn't seem to be the case. While creating this I noticed that our Representable instance for Tuple2 uses true for the first index and false for the second index. I'm not familiar with any precedents in this area, but I would have expected false = 0 index and true = 1 index. I assume that this is intended? I also added several scaladoc examples, because why not?!
- Loading branch information