17 using Newtonsoft.Json;
25 [JsonConverter(typeof(ExtremumJsonConverter))]
28 private Func<decimal, decimal, bool> _comparer;
34 public Extremum(Func<decimal, decimal, bool> comparer)
45 public bool Better(decimal current, decimal candidate) => _comparer(current, candidate);