aboutsummaryrefslogtreecommitdiff
path: root/aoc-2022-dotnet/Common/Library.fs
blob: 7354509c2c77e245aeba8ad9adfece97f2402b51 (plain)
1
2
3
4
5
6
7
8
module Common

open FParsec

let parse parser input =
    match run parser input with
    | Success (result, _, _) -> result
    | _ -> failwith "Invalid input format!"