Jump to content

[Resolvido] Int vs Integer


Recommended Posts

Int é para inteiros com comprimento fixo.

Integer para inteiros de comprimento arbitrário.

Mais do que isso, convém referir que isto implica que Integer tenha um alcance enorme, e Int é limitado a uma gama.

Vê isto (faz um pouquinho se scroll e vai aparecer a explicação da diferença destes 2 tipos): http://learnyouahaskell.com/types-and-typeclasses#believe-the-type

Cumprimentos 😉

Knowledge is free!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.