@@ -211,7 +211,7 @@ Base.Symbol(vn::VarName) = Symbol(string(vn)) # simplified symbol
211
211
inspace(vn::Union{VarName, Symbol}, space::Tuple)
212
212
213
213
Check whether `vn`'s variable symbol is in `space`. The empty tuple counts as the "universal space"
214
- containing all variables. Subsumption (see [`subsume `](@ref)) is respected.
214
+ containing all variables. Subsumption (see [`subsumes `](@ref)) is respected.
215
215
216
216
## Examples
217
217
@@ -322,6 +322,11 @@ subsumes(
322
322
) = subsumes_indices (t, u)
323
323
324
324
325
+ """
326
+ subsumedby(t, u)
327
+
328
+ True if `t` is subsumed by `u`, i.e., if `subsumes(u, t)` is true.
329
+ """
325
330
subsumedby (t, u) = subsumes (u, t)
326
331
uncomparable (t, u) = t ⋢ u && u ⋢ t
327
332
const ⊒ = subsumes
@@ -513,7 +518,7 @@ julia> y = zeros(10, 10);
513
518
julia> @varname(y[:], true)
514
519
y[:]
515
520
516
- julia> # The underlying value is conretized , though:
521
+ julia> # The underlying value is concretized , though:
517
522
AbstractPPL.getoptic(AbstractPPL.concretize(@varname(y[:]), y)).indices[1]
518
523
ConcretizedSlice(Base.OneTo(100))
519
524
```
@@ -525,11 +530,11 @@ concretize(vn::VarName, x) = VarName(vn, concretize(getoptic(vn), x))
525
530
526
531
A macro that returns an instance of [`VarName`](@ref) given a symbol or indexing expression `expr`.
527
532
528
- If `concretize` is `true`, the resulting expression will be wrapped in a [ `concretize`](@ref) call.
533
+ If `concretize` is `true`, the resulting expression will be wrapped in a `concretize()` call.
529
534
530
535
Note that expressions involving dynamic indexing, i.e. `begin` and/or `end`, will always need to be
531
536
concretized as `VarName` only supports non-dynamic indexing as determined by
532
- [`is_static_index`](@ref) . See examples below.
537
+ `is_static_optic` . See examples below.
533
538
534
539
## Examples
535
540
0 commit comments