Skip to content

Commit 2ca2a3c

Browse files
authored
document init
1 parent bf1ad62 commit 2ca2a3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

GeometryOpsCore/src/applyreduce.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Literate.jl source code is below.
5151
=#
5252

5353
"""
54-
applyreduce(f, op, target::Union{TraitTarget, GI.AbstractTrait}, obj; threaded)
54+
applyreduce(f, op, target::Union{TraitTarget, GI.AbstractTrait}, obj; threaded, init, kw...)
5555
5656
Apply function `f` to all objects with the `target` trait,
5757
and reduce the result with an `op` like `+`.
@@ -60,6 +60,8 @@ The order and grouping of application of `op` is not guaranteed.
6060
6161
If `threaded==true` threads will be used over arrays and iterables,
6262
feature collections and nested geometries.
63+
64+
`init` functions the same way as it does in base Julia functions like `reduce`.
6365
"""
6466
@inline function applyreduce(
6567
f::F, op::O, target, geom; threaded=false, init=nothing

0 commit comments

Comments
 (0)