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.Collections; | |
using System.Collections.Immutable; | |
using System.Runtime.CompilerServices; | |
namespace UnorderedCollectionComparison; | |
public interface IFullComparer<in T> : IEqualityComparer<T>, IComparer<T> | |
{ | |
} |
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
#r "paket: | |
nuget Fake.Core.Target | |
nuget Fake.Core.Process | |
nuget Fake.IO.FileSystem prerelease | |
//" | |
#load "./.fake/test.fsx/intellisense.fsx" | |
#if !FAKE | |
#r "netstandard" | |
#r "Facades/netstandard" // https://github.com/ionide/ionide-vscode-fsharp/issues/839#issuecomment-396296095 |
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
// Runs in https://fable.io/repl/# | |
open System | |
type Intermediate = { Digit : int; Flow: int; LastWasZero : bool } | |
let t = [ 1 .. 9 ] |> List.map (fun i -> { Digit = i; Flow = 0; LastWasZero = false }) | |
let nextRound (intermediate) = | |
let sum = intermediate.Digit * 2 + intermediate.Flow | |
let digit = sum % 10 | |
let nextFlow = sum / 10 |
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
module ReactErrorBoundary | |
open Fable.Core | |
open Fable.Import | |
open Fable.Helpers.React | |
type [<AllowNullLiteral>] InfoComponentObject = | |
abstract componentStack: string with get | |
[<Pojo>] |
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
// ---------------------------------------------------------------------------- | |
// This file is subject to the terms and conditions defined in | |
// file 'LICENSE.txt', which is part of this source code package. | |
// ---------------------------------------------------------------------------- | |
using System; | |
using System.Diagnostics; | |
using System.Threading; | |
using NUnit.Framework; | |
namespace NUnitFail |