Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Dec 26, 2023
1 parent 97ba3cd commit aea5a7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/primitives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ function _apply(f, ::Type{Target}, ::Nothing, A::AbstractArray; threaded=false,
end
end
# 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?)
# Try to call _apply over it. We can't use threading
# as we don't know if we can can index into it. So just `map`.
# (TODO: maybe `collect` first 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 aea5a7d

Please sign in to comment.