ValueRange over the object values, or an empty range if this is not an object.var.byValue
ValueRange byValue() @safeGet a forward range over the values of this object.
This method returns a ValueRange that can be used with std.algorithm functions and other range-based operations without allocating arrays.
Returns
A
Examples
import std.algorithm : filter, map;
import std.array : array;
var obj;
obj["a"] = 10;
obj["b"] = 20;
obj["c"] = 5;
auto largeValues = obj.byValue.filter!(v => v.as!int > 8).map!(v => v.as!int).array;