|
78 | 78 | end
|
79 | 79 | end
|
80 | 80 | show_type_name(io::IO, tn::Core.TypeName) = print(io, tn.name)
|
81 |
| - |
82 |
| - mapreduce(f::F, op::F2, A::AbstractArrayOrBroadcasted; dims=:, init=_InitialValue()) where {F, F2} = |
83 |
| - _mapreduce_dim(f, op, init, A, dims) |
84 |
| - mapreduce(f::F, op::F2, A::AbstractArrayOrBroadcasted...; kw...) where {F, F2} = |
85 |
| - reduce(op, map(f, A...); kw...) |
86 |
| - |
87 |
| - _mapreduce_dim(f::F, op::F2, nt, A::AbstractArrayOrBroadcasted, ::Colon) where {F, F2} = |
88 |
| - mapfoldl_impl(f, op, nt, A) |
89 |
| - |
90 |
| - _mapreduce_dim(f::F, op::F2, ::_InitialValue, A::AbstractArrayOrBroadcasted, ::Colon) where {F, F2} = |
91 |
| - _mapreduce(f, op, IndexStyle(A), A) |
92 |
| - |
93 |
| - _mapreduce_dim(f::F, op::F2, nt, A::AbstractArrayOrBroadcasted, dims) where {F, F2} = |
94 |
| - mapreducedim!(f, op, reducedim_initarray(A, dims, nt), A) |
95 |
| - |
96 |
| - _mapreduce_dim(f::F, op::F2, ::_InitialValue, A::AbstractArrayOrBroadcasted, dims) where {F,F2} = |
97 |
| - mapreducedim!(f, op, reducedim_init(f, op, A, dims), A) |
98 |
| - |
99 |
| - mapreduce_empty_iter(f::F, op::F2, itr, ItrEltype) where {F, F2} = |
100 |
| - reduce_empty_iter(MappingRF(f, op), itr, ItrEltype) |
101 |
| - mapreduce_first(f::F, op::F2, x) where {F,F2} = reduce_first(op, f(x)) |
102 |
| - |
103 |
| - _mapreduce(f::F, op::F2, A::AbstractArrayOrBroadcasted) where {F,F2} = _mapreduce(f, op, IndexStyle(A), A) |
104 |
| - mapreduce_empty(::typeof(identity), op::F, T) where {F} = reduce_empty(op, T) |
105 |
| - mapreduce_empty(::typeof(abs), op::F, T) where {F} = abs(reduce_empty(op, T)) |
106 |
| - mapreduce_empty(::typeof(abs2), op::F, T) where {F} = abs2(reduce_empty(op, T)) |
107 | 81 | end
|
108 | 82 | @eval Base.Sys begin
|
109 |
| - __init_build() = nothing |
| 83 | + __init_build() = nothing # VersionNumber parsing is not supported yet |
110 | 84 | end
|
111 | 85 | @eval Base.GMP begin
|
112 |
| - function __init__() |
| 86 | + function __init__() # VersionNumber parsing is not supported yet |
113 | 87 | try
|
114 | 88 | ccall((:__gmp_set_memory_functions, libgmp), Cvoid,
|
115 | 89 | (Ptr{Cvoid},Ptr{Cvoid},Ptr{Cvoid}),
|
|
135 | 109 | end
|
136 | 110 | end
|
137 | 111 | end
|
138 |
| -@eval Base.Sort begin |
139 |
| - issorted(itr; |
140 |
| - lt::T=isless, by::F=identity, rev::Union{Bool,Nothing}=nothing, order::Ordering=Forward) where {T,F} = |
141 |
| - issorted(itr, ord(lt,by,rev,order)) |
142 |
| -end |
143 |
| -@eval Base.TOML begin |
144 |
| - function try_return_datetime(p, year, month, day, h, m, s, ms) |
145 |
| - return DateTime(year, month, day, h, m, s, ms) |
146 |
| - end |
147 |
| - function try_return_date(p, year, month, day) |
148 |
| - return Date(year, month, day) |
149 |
| - end |
150 |
| - function parse_local_time(l::Parser) |
151 |
| - h = @try parse_int(l, false) |
152 |
| - h in 0:23 || return ParserError(ErrParsingDateTime) |
153 |
| - _, m, s, ms = @try _parse_local_time(l, true) |
154 |
| - # TODO: Could potentially parse greater accuracy for the |
155 |
| - # fractional seconds here. |
156 |
| - return try_return_time(l, h, m, s, ms) |
157 |
| - end |
158 |
| - function try_return_time(p, h, m, s, ms) |
159 |
| - return Time(h, m, s, ms) |
160 |
| - end |
161 |
| -end |
0 commit comments