Enlist enlist
¶
Creates a list from multiple arguments, folding into a vector if all arguments have the same type.
Info
- Creates a vector if all arguments are of the same type
- Creates a list if arguments have different types
- Preserves nested structures
Tip
Use enlist when you need to combine multiple values into a single collection