[det]flatten(+List1,
?List2)Is true if List2 is a non-nested version of List1.
- See also
- append/2
- deprecated
- Ending up needing flatten/3 often
indicates, like append/3
for appending two lists, a bad design. Efficient code that generates
lists from generated small lists must use difference lists, often
possible through grammar rules for optimal readability.