erlang - lists:append with list comprehensions -


How do I define lists: list work with an understanding of the list?

I want something

  1> Attached ([[1, 2, 3], [A, B], [4, 5, 6]]). [1,2,3, A, B, 4,5,6]    

Remember that you can use the elements in the generator after a generator in the same list!

  1> Lists = [[1, 2, 3], [A, B], [4, 5, 6]]. [[1,2,3], [A, B], [4,5,6] 2 & gt; [N || || L & LT; - List, N & LT; - L]. [1,2,3, A, B, 4,5,6]    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -