We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3b74ee commit 3ae8885Copy full SHA for 3ae8885
1 file changed
src/zeroth/__init__.py
@@ -1,6 +1,13 @@
1
"""Copyright (c) 2024 Nathaniel Starkman. All rights reserved.
2
3
zeroth: Efficiently get the index-0 element of an iterable.
4
+
5
+Notes
6
+-----
7
+- 2025/10: tested using single-dispatch generic function, but it was slower.
8
+ Currently it's 60.7 ns ± 0.303 ns per loop for `zeroth(list(range(10)))`.
9
+ Using singledispatch was 232 ns ± 3.44 ns per loop.
10
11
"""
12
13
__all__ = ["zeroth"]
0 commit comments