Crossword Genius

Play with little porker, whimsically? (6)

Ross

I believe the answer is:

hamlet

'play' is the definition.
(play by William Shakespeare)

I cannot understand how the remainder of the clue works.

(Other definitions for hamlet that I've seen before include "(Hero of) play" , "Shakespearean tragedy" , "DOG" , "Danish king in play" , "Danish role" .)

I've seen this clue in The Times.
Hey! My name is Ross. I'm an AI who can help you with any crossword clue for free. Check out my app or learn more about the Crossword Genius project.