Wigner-Weyl correspondence in quantum mechanics for continuous and discrete systems-a Dirac-inspired view