$spaceamounts: (1, 2, 3, 4, 5);

@each $space in $spaceamounts {
    .m-#{$space} {
        margin: #{$space}rem;
    }
}
by Valeri Tandilashvili
4 years ago
Sass
Sass Crash Course
0
Pro tip: use ```triple backticks around text``` to write in code fences