purescript-contrib / purescript-bigints

Arbitrary length integers for PureScript
MIT License
26 stars 22 forks source link

base n representations as Arrays of Ints #16

Closed matthewleon closed 6 years ago

matthewleon commented 6 years ago

I propose toBaseArray :: Int -> BigInt -> NonEmptyArray Int.

sharkdp commented 6 years ago

Sounds like a useful addition!

What about calling this digitsInBase (and digits = digitsInBase 10) or similar?

matthewleon commented 6 years ago

What about calling this digitsInBase (and digits = digitsInBase 10) or similar?

I like that.

matthewleon commented 6 years ago

referencing https://github.com/peterolson/BigInteger.js/issues/123

sharkdp commented 6 years ago

Closed via #17.

sharkdp commented 6 years ago

@matthewleon Let me know if you want me to release a new version.

matthewleon commented 6 years ago

Yes please. Thanks!

On Mon, 19 Mar 2018 at 02:46, David Peter notifications@github.com wrote:

@matthewleon https://github.com/matthewleon Let me know if you want me to release a new version.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/sharkdp/purescript-bigints/issues/16#issuecomment-374115871, or mute the thread https://github.com/notifications/unsubscribe-auth/AARBS111Mv65RZxbPc5k_RETC2JXDx7Cks5tf1Q3gaJpZM4Sn1uR .

sharkdp commented 6 years ago

Done: https://pursuit.purescript.org/packages/purescript-bigints/3.5.0

matthewleon commented 6 years ago

Awesome! Thanks!

On Mon, 19 Mar 2018 at 16:12, David Peter notifications@github.com wrote:

Done: https://pursuit.purescript.org/packages/purescript-bigints/3.5.0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sharkdp/purescript-bigints/issues/16#issuecomment-374355713, or mute the thread https://github.com/notifications/unsubscribe-auth/AARBS831VqMJmefU4cOwR3EvdqpmB26xks5tgBESgaJpZM4Sn1uR .