d085e48e89
We already have `mapConvert` and `mapCast` - this completes the API with corresponding `Err` versions similar to `mapErr`. The `Convert` / `Cast` operators are of somewhat dubious value - ie they exist as "efficiency" shortcuts for `map` for the case that the mapping should be done as a simple cast / conversion - an alternative would be to deprecate these features and aim for some other, more generic version that involves a type conversion library such as https://github.com/status-im/nim-stew/pull/34, though this inherently, and perhaps rightly, would be limited to "error-free" conversions. Regardless, these helpers provide balance to the existing API. |
||
---|---|---|
.. | ||
keyed_queue | ||
ranges | ||
shims | ||
sorted_set | ||
windows | ||
README.md | ||
arrayops.nim | ||
assign2.nim | ||
base10.nim | ||
base32.nim | ||
base58.nim | ||
base64.nim | ||
bitops2.nim | ||
bitseqs.nim | ||
byteutils.nim | ||
closures.nim | ||
ctops.nim | ||
endians2.nim | ||
enums.nim | ||
faux_closures.nim | ||
interval_set.nim | ||
io.nim | ||
io2.nim | ||
keyed_queue.nim | ||
leb128.nim | ||
objects.nim | ||
ptrops.nim | ||
result.nim | ||
results.nim | ||
rlimits.nim | ||
saturating_arith.nim | ||
saturation_arith.nim | ||
sequtils2.nim | ||
sorted_set.nim | ||
strings.nim | ||
templateutils.nim |
README.md
Candidates for standard library inclusion - functions and helpers that are too small to put in their own git repository