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
open System | |
type TheValue<'a> = | |
| Value of 'a | |
| None | |
let ReadInt() = | |
match Console.ReadLine() |> Int32.TryParse with | |
| true , v -> Value v |
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.IO; | |
using System.Runtime.Serialization; | |
using Google.Protobuf.Reflection; | |
using ProtoBuf; | |
using ProtoBuf.Reflection; | |
namespace nativeCheck | |
{ | |
[DataContract] |
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
open BenchmarkDotNet.Attributes | |
open BenchmarkDotNet.Running | |
type Tree<'a when 'a : comparison> = | |
| Node of 'a * Tree<'a> * Tree<'a> | |
| Empty | |
let rec insert newValue (tree : Tree<'a>) = |
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
open Microsoft.FSharp.Core | |
type FizzBuzzResult = | |
| Unhadnled of int | |
| Handled of string | |
let isDivisiblyBy n divisor = | |
n % divisor = 0 | |
let handle divisor label n = |
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.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
namespace ParserTest; | |
public static class Parser | |
{ | |
[InterpolatedStringHandler] | |
[StructLayout(LayoutKind.Auto)] |
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.Buffers; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using ConverterTest; | |
namespace MyBenchmarks | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) |
OlderNewer