module HelloWorld.Program
open Falco
open Falco.Routing
open Falco.HostBuilder
webHost [||] {
endpoints [
get "/" (Response.ofPlainText "Hello World")
]
}
[||] is the way of defining an empty “array” literal, in the same way as [] is the way of defining an empty “list” literal. You could define an array with elements in it such as [| 1 .. 5 |] or [| "hello"; "world" |]. Arrays in F# are another list-like structure that just has different performance characteristics, so sometimes they’re used in place of lists to speed things up. You can see the difference in performance here