How does pattern matching work behind the scenes in F#?
Posted
by kryptic
on Stack Overflow
See other posts from Stack Overflow
or by kryptic
Published on 2010-05-25T20:39:04Z
Indexed on
2010/05/25
20:41 UTC
Read the original article
Hit count: 175
Hello Everyone,
I am completely new to F# (and functional programming in general) but I see pattern matching used everywhere in sample code. I am wondering for example how pattern matching actually works? For example, I imagine it working the same as a for loop in other languages and checking for matches on each item in a collection. This is probably far from correct, how does it actually work behind the scenes?
© Stack Overflow or respective owner