Green’s Dictionary of Slang

hamlet n.

[note Yorks. dial. play Hamlet with, to ‘play the devil’ with]

1. (UK Und.) a high constable.

[UK]B.E. Dict. Canting Crew n.p.: Hamlet c. a High Constable.
[UK]A. Smith Lives of Most Notorious Highway-men, etc. (1926) 206: Hamlet, a high constable.
[UK]New Canting Dict. [as cit. c.1698].
[UK]Bailey Universal Etym. Eng. Dict. [as cit. c.1698].
[UK]Grose Classical Dict. of the Vulgar Tongue.
[UK]B.M. Carew Life n.p.: Hamlet, a high-constable [F&H].
[UK]G. Andrewes Dict. Sl. and Cant.
[UK]Lex. Balatronicum.
[UK]Egan Grose’s Classical Dict. of the Vulgar Tongue.
[UK]G. Kent Modern Flash Dict.
[UK]Flash Dict. in Sinks of London Laid Open.

2. (US Und.) a police captain.

[US]Matsell Vocabulum.
[US]Trumble Sl. Dict. (1890).
[US]Monteleone Criminal Sl. (rev. edn).