Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Dec 26, 2023
1 parent 2944021 commit 97ba3cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/primitives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ function _apply(f, ::Type{Target}, ::Nothing, A::AbstractArray; threaded=false,
_apply(f, Target, A[i]; threaded=false, kw...)
end
end
# Try to _apply over unknown iterables. We can't use threading on an
# There is no trait and this is not an AbstractArray.
# Try to aclla _apply over. We can't use threading on an
# arbitrary iterable as we maybe can't index into it. So just `map`.
# (TODO: maybe `collect` if `threaded=true` so we can thread?)
_apply(f, ::Type{Target}, ::Nothing, iterable; kw...) where Target =
map(x -> _apply(f, Target, x; kw...), iterable)
# Rewrap all FeatureCollectionTrait feature collections as GI.FeatureCollection
Expand Down

0 comments on commit 97ba3cd

Please sign in to comment.