### ----------------------------------------------------
### -- Hash::int
### -- Licenses: Artistic-2.0
### -- Authors: Elizabeth Mattijsen
### -- File: README.md
### ----------------------------------------------------
[![Actions Status](https://github.com/lizmat/Hash-int/actions/workflows/linux.yml/badge.svg)](https://github.com/lizmat/Hash-int/actions) [![Actions Status](https://github.com/lizmat/Hash-int/actions/workflows/macos.yml/badge.svg)](https://github.com/lizmat/Hash-int/actions) [![Actions Status](https://github.com/lizmat/Hash-int/actions/workflows/windows.yml/badge.svg)](https://github.com/lizmat/Hash-int/actions)

NAME
====

Hash::int - provide a hash with native integer keys

SYNOPSIS
========

```raku
use Hash::int;

my %hash is Hash::int = 42 => "foo", 666 => "bar";
```

DESCRIPTION
===========

Hash::int is module that provides the `Hash::int` class to be applied to the initialization of an Associative, making it limit the keys to native integers that fit the `int` type. This allows this module to take some shortcuts, making it up to **7x** as fast as a normal hash.

AUTHOR
======

Elizabeth Mattijsen <liz@raku.rocks>

Source can be located at: https://github.com/lizmat/Hash-int . Comments and Pull Requests are welcome.

If you like this module, or what I’m doing more generally, committing to a [small sponsorship](https://github.com/sponsors/lizmat/) would mean a great deal to me!

COPYRIGHT AND LICENSE
=====================

Copyright 2021, 2024, 2025 Elizabeth Mattijsen

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.



