you can create your own function in sass with @function funName(arg1, arg2, …) {}, if you want to call function, just funName(arg1, arg2, …);
it looks like the same as @mixin(){}, @mixin seems focus on manipulate css properties, and also when you want to call them, you have to use @include mixinName(arg1, arg2,…)