Module ddash.utils
General utilities
Module | Functions | Properties | Description |
---|---|---|---|
deref |
deref
|
Derefences a "thing", could be a pointer, range, or others | |
expect |
Expected Unexpected expected |
Represents a result that has a value or something unexpected | |
truthy |
isTruthy isFalsey |
Represents "truthiness" | |
or |
or
|
Null coallescing operator, but works on other ranges and other types as well | |
slice |
slice
|
Slices arrays, ranges, and PODs | |
optional |
Imports a subset of https://optional.dub.pm | ||
match |
match
|
matches on expects, trys, and optionals | |
try_ |
Try tryUntil |
utilities to deal with throwing functions | |
Flag |
Flag
|
better than std.typecons.Flag |