package
Version:
v2.0.1
Opens a new window with list of versions in this module.
Published: Jun 6, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package util provides shared internal utility functions for the iam project.
Contains checks whether slice a contains any element from slice b.
It uses optimized strategies based on input sizes:
- Single-element b: linear scan of a.
- Small inputs (both <= 16): nested loop without allocation.
- Large inputs: hash-set built from the shorter slice for O(1) lookups.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.