-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
good first issueIndicates a good issue for first-time contributors to JuliaIndicates a good issue for first-time contributors to Julianeeds decisionA decision on this change is neededA decision on this change is neededstdlibJulia's standard libraryJulia's standard library
Description
Originally posted by @NHDaly in #32427 (comment)
#32427 added an unexported function, _counttuple(::Type{<:Tuple})
which returns the number of elements in the tuple type.
Can we name this something not private and export it? This is something we use all the time in our code at RelationalAI, where we do a lot of stuff with tuples. It also seems like something that other code will use a lot, like DataFrames, CSV, etc.
In that other comment I suggested arity(::Type{<:Tuple})
as one suggestion. I still like that best, but open to others!
arity()
tupletypewidth()
/tuple_type_width()
tupletypecount()
/tuple_type_count()
tuplearity()
tupletypelength()
/tuple_type_length()
Metadata
Metadata
Assignees
Labels
good first issueIndicates a good issue for first-time contributors to JuliaIndicates a good issue for first-time contributors to Julianeeds decisionA decision on this change is neededA decision on this change is neededstdlibJulia's standard libraryJulia's standard library