When to use a sequence in F# as opposed to a list?

I think your summary for when to choose Seq is pretty good. Here are some additional points: Use Seq by default when writing functions, because then they work with any .NET collection Use Seq if you need advanced functions like Seq.windowed or Seq.pairwise I think choosing Seq by default is the best option, so when … Read more

F#: let mutable vs. ref

I can only support what gradbot said – when I need mutation, I prefer let mutable. Regarding the implementation and differences between the two – ref cells are essentially implemented by a very simple record that contains a mutable record field. You could write them easily yourself: type ref<‘T> = // ‘ { mutable value … Read more

How do I use Travis-CI with C# or F#

See danielnixon’s answer for the official way to do this now. It is possible. 1. Your project needs to work on Mono On your own mono machine, using the terminal, cd into your solution directory and running the command xbuild. This may automatically work, or it may not, as there are features you used in … Read more

What are the benefits of using C# vs F# or F# vs C#? [closed]

General benefits of functional programming over imperative languages: You can formulate many problems much easier, closer to their definition and more concise in a functional programming language like F# and your code is less error-prone (immutability, more powerful type system, intuitive recurive algorithms). You can code what you mean instead of what the computer wants … Read more

What the difference between a namespace and a module in F#?

A namespace is a .Net thing, common in many industrial-strength languages, just a way to organize frameworks and avoid naming conflicts among different libraries. Both you and I can define a type “Foo” and use them both in a project, provided they are in different namespaces (e.g. NS1.Foo and NS2.Foo). Namespaces in .Net contain types. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)