// Icon Address
// ============
//
// Going to pilot a new approach to the Icon Font mixin
//
// Usage:
//
// .some-icon {
//     content: icon-address('twitter');
// }
//
// Dependencies:
//
// * `$icon-list` is required to be been previously defined, which is a map of
//                 all available with which icon-address() will scan to return
//                 the desired icon code.


// @function: Icon Code
// --------------------

@function icon-address($icon-name) {
    // Return the icon font text value
    @if (map-has-key($icon-list, $icon-name)) {
        @return map-get($icon-list, $icon-name);
    }

    // The desired icon does not exist in $icon-list
    @else {
        @warn '$iconName is not set. Refer to $icon-list for a list of available icons';
    }
}

// Icon Address
// ============
//
// Usage:
//
// .some-icon {
//     content: icon-address('twitter');
// }
//
// Dependencies:
//
// * `$icon-list` is required to be been previously defined, which is a map of
//                 all available with which icon-address() will scan to return
//                 the desired icon code.


// @function: Icon Code
// --------------------

@function icon-address($icon-name) {
    // Return the icon font text value
    @if (map-has-key($icon-list, $icon-name)) {
        @return map-get($icon-list, $icon-name);
    }

    // The desired icon does not exist in $icon-list
    @else {
        @warn '$iconName is not set. Refer to $icon-list for a list of available icons';
    }
}

Remove unneeded text from comments
Remove unneeded text from comments