Add `constant` function into `papylon.gen` module

This PR will resolve the issue #14 .