isFirstElement function
Implementation
bool isFirstElement(String str) {
if (str.contains("Пн") ||
str.contains("Вт") ||
str.contains("Ср") ||
str.contains("Чт") ||
str.contains("Пт") ||
str.contains("Сб") ||
str.contains("Вс")) {
return true;
}
return false;
}