Home

Hi,

sorry that I'm relatively new to Python. But the syntax and semantics of
Python already fascinate me, because I'm familiar with functional languages
like Haskell.

Is there a pattern matching construct in Python like (head : tail), meaning
'head' matches the first element of a list and 'tail' matches the rest? I
could not find this in the Python documentation.

Regards,
Stefan

previous
next

Re: Initialisation and cleanup
Re: Python Unicode to String conversion
Where's the Starship's crew?
Re: help with vector<vector<double>>
Re: Why equal operator is not called?
Niechciane i Zapomniane
Akogo
Mimo Wszystko
Rodzic Po Ludzku
Fundacja Avalon