Skip to content

Consider making map value lookup recursive #24

@beefchimi

Description

@beefchimi

Starting point:

$test-map: (
  base: 'one',
  thing: (
    base: 'two',
    other: 2,
    stuff: (
      base: 'three',
      hello: 3,
      deep: (
        base: 'four',
        end: 4,
      ),
    ),
  ),
);

@function test($keys...) {
  // @debug $keys;

  $map: $test-map;

  @each $key in $keys {
    @debug $key;
    $map: map-get($map, $key);
  }

  @return $map;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions