How to define a lists:append function with a list?
lists:append
I need something like
1> append([[1, 2, 3], [a, b], [4, 5, 6]]). [1,2,3,a,b,4,5,6]
Remember that you can use elements from the generator in a later generator in the same sense of the list!
1> Lists = [[1, 2, 3], [a, b], [4, 5, 6]]. [[1,2,3],[a,b],[4,5,6]] 2> [N || L <- Lists, N <- L]. [1,2,3,a,b,4,5,6]
[Y || X <- [[1,2,3],[a,b],[4,5,6]], Y <- X ].
Source: https://habr.com/ru/post/1345447/More articles:A certain XML value for Android XML gives unexpected results - androidj_spring_security_check is not available. Please help with Spring3 entry - springPackage Deleting a line in a text file? - windowsHow do you read console output from Windows commands in C ++? - c ++Android and maven: maven dependency issue in apk - androidGet the POST data in the order they were sent to Django - djangoWindows Phone Application Project Type Not available in VS2010 - visual-studio-2010Manage multiple Chrome profiles - OSX - google-chromeinventory of regular expression anchors - regexUIWebview: does not rotate or change to fit the entire screen - iosAll Articles