contestada

Identify the extended simile in this passage. How does it add meaning to the text?

"Sudden as hungry wolves the kids purloin
Or lambs, which haply some unheeding swain
Hath left to roam at large the mountains wild;
They, seeing, snatch them from beside the dams,
And rend incontinent the feeble prey,
So swift the Danaï the host assail'd
Of Ilium; they, into tumultuous flight
Together driven, all hope, all courage lost."