Alchemy.Permissions.to_list

You're seeing just the function to_list, go back to Alchemy.Permissions module for more information.
Link to this function

to_list(bitset)

Specs

to_list(Integer) :: [permission()]

Converts a permission bitset into a legible list of atoms. This is the reverse operation of to_bitset/1.

For checking if a specific permission is in that list, use contains?/2 instead.

Examples

permissions = Permissions.to_list(role.permissions)