diff --git a/src/zeroth/__init__.py b/src/zeroth/__init__.py index 4ac112a..14408dd 100644 --- a/src/zeroth/__init__.py +++ b/src/zeroth/__init__.py @@ -1,6 +1,13 @@ """Copyright (c) 2024 Nathaniel Starkman. All rights reserved. zeroth: Efficiently get the index-0 element of an iterable. + +Notes +----- +- 2025/10: tested using single-dispatch generic function, but it was slower. + Currently it's 60.7 ns ± 0.303 ns per loop for `zeroth(list(range(10)))`. + Using singledispatch was 232 ns ± 3.44 ns per loop. + """ __all__ = ["zeroth"]