Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add missing documentation for ArrayLiteral.reduce with memo #8379
Hi, i found while writing macros that ArrayLiteral don't have reduce method that would allow me to pass initial value. Until i try it, and voilà, it worked. So i look into the spec and there's even a test for it. So it's only missing in generated docs here: https://crystal-lang.org/api/Crystal/Macros.html. So i add it to the definition. As bonus i add test similar to Enumerable, see my other PR #8378.
Related to #8377.