diff options
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/documentation/lux/data/sum.lux | 38 |
1 files changed, 17 insertions, 21 deletions
diff --git a/stdlib/source/documentation/lux/data/sum.lux b/stdlib/source/documentation/lux/data/sum.lux index f937487f2..cf4df8be5 100644 --- a/stdlib/source/documentation/lux/data/sum.lux +++ b/stdlib/source/documentation/lux/data/sum.lux @@ -1,7 +1,7 @@ (.require [library [lux (.except left right) - ["$" documentation (.only documentation:)] + ["$" documentation] [data [text (.only \n) ["%" \\format (.only format)]]] @@ -10,31 +10,27 @@ [\\library ["[0]" /]]) -(documentation: /.left - "Lifts value to the left side of a 2-variant.") - -(documentation: /.right - "Lifts value to the right side of a 2-variant.") - -(documentation: /.either - "Applies a function to either side of a 2-variant." - [(either on_left on_right)]) - -(documentation: /.then - "Applies functions to both sides of a 2-variant." - [(then on_left on_right)]) - (.def .public documentation (.List $.Module) ($.module /._ "Functionality for working with variants (particularly 2-variants)." - [..left - ..right - ..either - ..then - ($.default /.lefts) + [($.default /.lefts) ($.default /.rights) ($.default /.partition) ($.default /.equivalence) - ($.default /.hash)] + ($.default /.hash) + + ($.documentation /.left + "Lifts value to the left side of a 2-variant.") + + ($.documentation /.right + "Lifts value to the right side of a 2-variant.") + + ($.documentation /.either + "Applies a function to either side of a 2-variant." + [(either on_left on_right)]) + + ($.documentation /.then + "Applies functions to both sides of a 2-variant." + [(then on_left on_right)])] [])) |