```
pendingFetches = partitions.headOption.map { partitionNo =>
  pendingFetches.enqueue(fetchData(partitionNo))
}.getOrElse(pendingFetches)
```