$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| using System.Threading; | |
| using Newtonsoft.Json; | |
| #if DEBUG | |
| using System.Diagnostics; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // assuming elements in a set do not repeat | |
| let rec kCombinations k (set: 'a list) = | |
| match k with | |
| | 1 -> set |> List.map (fun x -> [x]) | |
| | _ -> | |
| match set with | |
| | [] -> [] | |
| | head::tail -> | |
| (tail |> kCombinations (k - 1) |> List.map (fun x -> head::x)) | |
| @ (tail |> kCombinations k) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Newtonsoft.Json.Converters | |
| open Microsoft.FSharp.Reflection | |
| open Newtonsoft.Json | |
| open System | |
| type IdiomaticDuConverter() = | |
| inherit JsonConverter() | |
| [<Literal>] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace MyNamespace | |
| type IMyInterface = | |
| abstract GetValue: unit -> string | |
| type MyRecord = | |
| { MyField1: int | |
| MyField2: string } | |
| interface IMyInterface with | |
| member x.GetValue() = x.MyField2 |
NewerOlder