count_by_weekday

Function count_by_weekday 

Source
fn count_by_weekday(tickets: &[TicketPartial]) -> [usize; 7]
Expand description

Counts the number of tickets submitted on each day of the week.

This function takes a slice of TicketPartial and returns an array where each element corresponds to a day of the week (Monday=0, Sunday=6) and contains the total count of tickets submitted on that day.

§Arguments

§Returns

An array [usize; 7] with ticket counts for each weekday.