added a snippet for apl functions