I’m a C# developer new to F#,I understand that in .net the strings are immutable. In other words every time you modify a string you get a new string instance.
For a non functional mind like mine the first question would be efficiency and I understand that C# mutable objects are not persistent. since string manipulation is normally trivial in most of applications.
My question is, Is this the case for F# lists too?, Do F# clones every list on change? Like for example, when filtering a list do I create a new list with fewer Items?
Update: I’m not comparing .net string and lists. I named string as an example of an immutable object and want to know if F# provides any special treatment for it’s List.
This is what I mean by “persistent“.
I think Dustin Campbell’s introduction does an amazing job of explaining list immutability.