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 CE | |
| type DummyBuilder() = | |
| member this.Zero() = List.empty | |
| member this.Delay(f) = f () | |
| member this.Yield(x: int) = List.singleton (x + 1) | |
| member this.YieldFrom(x: int list) = x | |
| member this.Combine(a, b) = a @ b | |
| let dummy = DummyBuilder() |
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 React.Plugin | |
| open System | |
| open System.IO | |
| open Fable | |
| open Fable.AST | |
| open Fable.AST.Fable | |
| // Tell Fable to scan for plugins in this assembly | |
| [<assembly : ScanForPlugins>] |
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
| import { readdir, stat as statAsync } from "fs/promises"; | |
| import { join } from "path"; | |
| // benchmark.js | |
| const start = process.hrtime.bigint(); | |
| // --- your code goes here --- | |
| const args = process.argv.slice(2); | |
| if (args.length === 0) { |
OlderNewer