有没有像 Python 一样的 Haskell 等价的可迭代解包方式?

Aso*_*cia 0 python haskell iterable-unpacking

我想知道是否可以从 Haskell 中的可迭代事物中创建变量。我在搜索时发现了这个,但我无法适应我的情况。也许这是不可能的,或者我错过了一些东西,因为我是初学者。基本上,我想知道在 Haskell 中是否有可能发生这样的事情:

>>> list_of_lists = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
>>> a, b, c = list_of_lists
>>> print(a)
[1, 2, 3]
Run Code Online (Sandbox Code Playgroud)

luq*_*qui 7

ghci> list_of_lists = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
ghci> [a,b,c] = list_of_lists
ghci> print a
[1,2,3]
Run Code Online (Sandbox Code Playgroud)