... This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
... If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

(.require
 [library
  [lux (.except)
   ["$" documentation]]]
 [\\library
  ["[0]" /]])

(the .public documentation
  (List $.Documentation)
  (list ($.module /._
                  "Functionality for working with variants (particularly 2-variants).")

        ($.definition /.lefts)
        ($.definition /.rights)
        ($.definition /.partition)
        ($.definition /.equivalence)
        ($.definition /.hash)

        ($.definition /.left
          "Lifts value to the left side of a 2-variant.")

        ($.definition /.right
          "Lifts value to the right side of a 2-variant.")

        ($.definition /.either
          "Applies a function to either side of a 2-variant."
          ($.example (' (either on_left on_right))))

        ($.definition /.then
          "Applies functions to both sides of a 2-variant."
          ($.example (' (then on_left on_right))))
        ))
