Skip to content

Commit afd21e8

Browse files
authored
remove Callable constraint in mapview() (#39)
1 parent 4a0dc78 commit afd21e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/map.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ julia> b
107107
-3
108108
```
109109
"""
110-
mapview(f::Callable, a) = MappedIterator(f, a)
111-
mapview(f::Callable, a::AbstractArray{T, N}) where {T, N} = MappedArray{promote_op(f, T), N, typeof(f), typeof(a)}(f, a)
112-
function mapview(f::Callable, d::AbstractDictionary)
110+
mapview(f, a) = MappedIterator(f, a)
111+
mapview(f, a::AbstractArray{T, N}) where {T, N} = MappedArray{promote_op(f, T), N, typeof(f), typeof(a)}(f, a)
112+
function mapview(f, d::AbstractDictionary)
113113
I = keytype(d)
114114
T = Core.Compiler.return_type(f, Tuple{eltype(d)})
115115

0 commit comments

Comments
 (0)