Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
replace refernce to `%` with `modBy` #1094
Conversation
I just ran into a runtime error caused by calling `Basics.modBy` with the arguments in the wrong order, leading to a value of 0 as the first argument. The error had a link to [the 1.0.0 version of the page i edited](https://github.com/elm/core/blob/1.0.0/hints/11.md). My understanding is that `%` has been removed from the language, in favor of `remainderBy` and `modBy`, so, given that the old version of the page would still be around for old versions of elm, changing this to reference `modBy` seems better. As mentioned in [this issue comment](#1034 (comment)), `remainderBy 0 n` currently returns `NaN` instead of leading to this page, so I didn't mention it.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

I just ran into a runtime error caused by calling
Basics.modBywith the arguments in the wrong order, leading to a value of 0 as the first argument. The error had a link to the 1.0.0 version of the page i edited. My understanding is that%has been removed from the language, in favor ofremainderByandmodBy, so, given that the old version of the page would still be around for old versions of elm, changing this to referencemodByseems better.As mentioned in this issue comment,
remainderBy 0 ncurrently returnsNaNinstead of leading to this page, so I didn't mention it.