We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fac8e6c commit 5062d3eCopy full SHA for 5062d3e
src/Data/Digit.agda
@@ -56,7 +56,7 @@ toNatDigits base@(suc (suc _)) n = aux (<-wellFounded-fast n) []
56
aux {zero} _ xs = (0 ∷ xs)
57
aux {n@(suc _)} (acc wf) xs with does (0 <? n / base)
58
... | false = (n % base) ∷ xs -- n here is already sufficient?
59
- ... | true = aux (wf (m/n<m n base)) ((n % base) ∷ xs)
+ ... | true = aux (wf (m/n<m n base sz<ss)) ((n % base) ∷ xs)
60
61
------------------------------------------------------------------------
62
-- Converting between `ℕ` and expansions of `Digit base`
0 commit comments