Replaces spaces in range r with the optimal number of tabs. All spaces and tabs at the end of a line are removed.
string or forward range
distance between tab stops
lazy forward range with spaces replaced with tabs
import std.array : array; assert(entabber(" x \n").array == "\tx\n");
entab
See Implementation
Replaces spaces in range r with the optimal number of tabs. All spaces and tabs at the end of a line are removed.