In F# what does the >> operator mean?

It’s the function composition operator. More info on Chris Smith’s blogpost. Introducing the Function Composition operator (>>): let inline (>>) f g x = g(f x) Which reads as: given two functions, f and g, and a value, x, compute the result of f of x and pass that result to g. The interesting thing … Read more

.NET Core 3 preview 4: ‘AddNewtonsoftJson’ is not defined

In order to switch ASP.NET Core 3.0 back to use JSON.NET, you will need to reference the Microsoft.AspNetCore.Mvc.NewtonsoftJson NuGet package. That will contain the AddNewtonsoftJson extension method. In C#, this would look like this: services.AddControllers() .AddNewtonsoftJson(); So assuming that I understand enough of F#, I would say that your call would be correct if you … Read more

convert .NET generic List to F# list

Try List.ofSeq in the Microsoft.FSharp.Collections namespace. # List.ofSeq : seq<‘T> -> ‘T list It’s not specifically for System.Collections.Generic.List<T>, but for IEnumerable<T> (seq<‘T> in F#) types in general, so it should still work. (It’s also not strictly built into the F# language, but neither is List<T> built into C# or VB.NET. Those are all part of … Read more

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