Drag and drop a matching item?

Create an enumerator:

Or, in fewer words:


  • drop slots get an enum
  • draggables get an enum
  • when you drop, compare enumerators
  • if match → Drop
  • if not → Cancel Operation