New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BatList.n_cartesian_product #359
Comments
Thanks for your report. It is clear that After a bit of mathematical thinking, I think the One Right Answer in this case is |
I sended a pull request. (I'm a github beginner. I'm sorry for anything bad..) |
Your contribution closes this bug. Thanks a lot, and I hope you'll find other bugs :-) |
True story: In 2012, young Max Mouratov wrote a bunch of code that used In 2013, young Gabriel Scherer found the One Right Answer to "what should In 2023, the bunch of code that young Max wrote in 2013 suddenly broke on a particular input, and the now old Max discovered that Then, the old Max read the deep blog post by the young Gabriel, and his IQ increased by one point. He understood the secrets of the universe, and the whole truth unfolded before him. The blog post ended with a bit of infinite wisdom:
So, the old Max pondered about it for a while, and his mind got illuminated by the brightest idea ever. He copied the implementation of There is no morale. But the old Max from 2023 suggests that perhaps it'd be wise to document this corner case in the docstring of |
If you send an improvement for the ocamldoc of this function, I will gladly merge it. |
Is there any reason for
BatList.n_cartesian_product [] = assert false
?
I think [[]] is good (or at least invalid_arg) instead of assert false.
The text was updated successfully, but these errors were encountered: