Edit
/* scss/2-mixins-and-functions/_function-spacing.scss */
//* -------------- KARLS SPACES FUNCTION
// spaces map in _wm-spacing.scss
// retrieve space from map with Sass ie. 'kspaces(md)'
@function kspaces($space-name) {
// single-level space, one deep
@return #{map-get($kspaces, $space-name)};
}
// retrieve height from map with Sass ie.'height(primary)
$height-prefix: --height-;
@function height($height-name, $height-variant: null, $true-val: false) {
// if we need to return the height value
//@if $true-val == true {
// if height variant is specified
@if ($height-variant != null) {
// map inception, need two deep
@return map-get(map-get($heights, $height-name), $height-variant);
} @else {
// single-level height, one deep
@return map-get($heights, $height-name);
}
}