Class to provide number -> name translation
This class is useful for when you want to display a lot of numbers that don't have an immediate meaning for a person (pointers, hashes, etc) but where it still is helpful or important to easily see whether a number is different from the other.
Usage Example:
import ocean.io.digest.FirstName; MyClass myArray[] = ... ; foreach ( c; myArray ) { Stdout.formatln("{}.property = {}", FirstName(cast(void*) c), c.property); }
Function to map an abitrary integer to a string for easier distinction
See Implementation
Class to provide number -> name translation
This class is useful for when you want to display a lot of numbers that don't have an immediate meaning for a person (pointers, hashes, etc) but where it still is helpful or important to easily see whether a number is different from the other.
Usage Example: