clpatterns function

Retrieve pattern or patterns