You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that adding convert(::Type{<:InfiniteCardinal}, x) = convert(Integer, x) would allow Base.OneTo(ℵ₀) to replace OneToInf(), and also allow us to delete all zero/one/oneunit specializations, and possibly more.
This is dubious because convert(T, x) has a docstring that says Convert x to a value of type T, but InfiniteCardinal is an Integer, so this is close.
I think that adding
convert(::Type{<:InfiniteCardinal}, x) = convert(Integer, x)
would allowBase.OneTo(ℵ₀)
to replaceOneToInf()
, and also allow us to delete allzero
/one
/oneunit
specializations, and possibly more.This is dubious because
convert(T, x)
has a docstring that saysConvert x to a value of type T
, butInfiniteCardinal
is anInteger
, so this is close.Originally posted by @LilithHafner in #42 (comment)
The text was updated successfully, but these errors were encountered: