append, flatMap and flatten in Enum