pub fn work_stealing_map<T, R, F>(items: &[T], f: F) -> Vec<R>where T: Sync, R: Send + 'static, F: Fn(&T) -> R + Send + Sync,
Parallel map with work stealing
Note: This is a simplified implementation for demonstration. For production use, consider using a dedicated work-stealing library.