Revision c0a882afa2c7617210de242f7da5f7ad0b1451f8 authored by Simeon David Schaub on 11 November 2021, 18:11:19 UTC, committed by Simeon David Schaub on 11 November 2021, 18:20:50 UTC
This basically just widens the allowed types for what was previously
`EachStringIndex` since the way it works is not really specific to
strings. I needed something like this for my own collection type and
half expected `eachindex` to work like that already.

If people don't like the generic fallback method for `keys` here
though, we could also require people to opt into it explicitly by
defining `Base.keys(x::T) = Base.EachIndex(x)` themselves instead.
1 parent 13afd74
History
File Mode Size
.buildkite
.devcontainer
.github
base
cli
contrib
deps
doc
etc
src
stdlib
test
.clang-format -rw-r--r-- 3.3 KB
.codecov.yml -rw-r--r-- 52 bytes
.gitattributes -rw-r--r-- 65 bytes
.gitignore -rw-r--r-- 433 bytes
.mailmap -rw-r--r-- 11.1 KB
CITATION.bib -rw-r--r-- 513 bytes
CITATION.cff -rw-r--r-- 942 bytes
CONTRIBUTING.md -rw-r--r-- 22.5 KB
HISTORY.md -rw-r--r-- 333.2 KB
LICENSE.md -rw-r--r-- 1.3 KB
Make.inc -rw-r--r-- 49.2 KB
Makefile -rw-r--r-- 25.6 KB
NEWS.md -rw-r--r-- 6.1 KB
README.md -rw-r--r-- 7.4 KB
THIRDPARTY.md -rw-r--r-- 3.6 KB
VERSION -rw-r--r-- 10 bytes
sysimage.mk -rw-r--r-- 4.0 KB

README.md

back to top