Skip to content

Commit b4c185d

Browse files
committed
Improve doc for deepmap
1 parent f9d9a9c commit b4c185d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/functions.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ nestedmap2(f::Base.Callable, A::AbstractArray{<:AbstractArray{T,M},N}) where {T,
1515

1616

1717
"""
18-
deepmap(f::Base.Callable, A::AbstractArray)
18+
deepmap(f::Base.Callable, x::Any)
1919
deepmap(f::Base.Callable, A::AbstractArray{<:AbstractArray{<:...}})
2020
21-
Applies `map` at the deepest possible layer of nested arrays.
21+
Applies `map` at the deepest possible layer of nested arrays. If `A` is not
22+
a nested array, `deepmap` behaves identical to `Base.map`.
2223
"""
2324
function deepmap end
2425
export deepmap

0 commit comments

Comments
 (0)