package devkit

  1. Overview
  2. Docs

Module Prelude.F1Source

1-argument function composition combinators that allow quickly switching to or from point-free chained function pipeline e.g. let inc s = string_of_int @@ (+) 1 @@ int_of_string s vs let inc = F1.(string_of_int @@ (+) 1 @@ int_of_string) and similarly let inc = F1.(int_of_string |> (+) 1 |> string_of_int)

Sourceval (@@) : ('a -> 'b) -> ('c -> 'a) -> 'c -> 'b
Sourceval (|>) : ('a -> 'b) -> ('b -> 'c) -> 'a -> 'c