diff options
Diffstat (limited to 'stdlib/source/documentation/lux/data')
8 files changed, 38 insertions, 20 deletions
diff --git a/stdlib/source/documentation/lux/data/collection/array.lux b/stdlib/source/documentation/lux/data/collection/array.lux index 3bf22b587..e36cba1a8 100644 --- a/stdlib/source/documentation/lux/data/collection/array.lux +++ b/stdlib/source/documentation/lux/data/collection/array.lux @@ -118,7 +118,7 @@ ($.default /.equivalence) ($.default /.monoid) ($.default /.functor) - ($.default /.fold) + ($.default /.mix) ($.default /.every?) ($.default /.any?)] [])) diff --git a/stdlib/source/documentation/lux/data/collection/list.lux b/stdlib/source/documentation/lux/data/collection/list.lux index 1050ab7ce..87cf01da1 100644 --- a/stdlib/source/documentation/lux/data/collection/list.lux +++ b/stdlib/source/documentation/lux/data/collection/list.lux @@ -15,9 +15,9 @@ [\\library ["." /]]) -(documentation: /.aggregates +(documentation: /.mixes "" - [(aggregates f init inputs)]) + [(mixes f init inputs)]) (documentation: /.reversed "" @@ -181,7 +181,7 @@ (.List $.Module) ($.module /._ "" - [..aggregates + [..mixes ..reversed ..only ..partition @@ -225,7 +225,7 @@ ..lifted ..enumeration ..when - ($.default /.fold) + ($.default /.mix) ($.default /.equivalence) ($.default /.hash) ($.default /.monoid) diff --git a/stdlib/source/documentation/lux/data/collection/row.lux b/stdlib/source/documentation/lux/data/collection/row.lux index e72e8974e..a49b12bd4 100644 --- a/stdlib/source/documentation/lux/data/collection/row.lux +++ b/stdlib/source/documentation/lux/data/collection/row.lux @@ -75,7 +75,7 @@ ($.default /.of_list) ($.default /.empty?) ($.default /.equivalence) - ($.default /.fold) + ($.default /.mix) ($.default /.monoid) ($.default /.functor) ($.default /.apply) diff --git a/stdlib/source/documentation/lux/data/color.lux b/stdlib/source/documentation/lux/data/color.lux index 96a44b6ed..2a439f7c3 100644 --- a/stdlib/source/documentation/lux/data/color.lux +++ b/stdlib/source/documentation/lux/data/color.lux @@ -77,6 +77,19 @@ (documentation: /.Pigment "A color with some degree of transparency.") +(template [<name>] + [(`` (documentation: <name> + (format "A " + (text.replaced "_" "-" (~~ (template.text [<name>]))) + " color scheme.")))] + + [/.triad] + [/.clash] + [/.split_complement] + [/.square] + [/.tetradic] + ) + (.def: .public documentation (.List $.Module) ($.module /._ @@ -101,6 +114,13 @@ ..translucent ..opaque ..Pigment + + ..triad + ..clash + ..split_complement + ..square + ..tetradic + ($.default /.of_rgb) ($.default /.rgb) ($.default /.equivalence) @@ -116,11 +136,6 @@ ($.default /.cmyk) ($.default /.of_cmyk) ($.default /.gray_scale) - ($.default /.triad) - ($.default /.clash) - ($.default /.split_complement) - ($.default /.square) - ($.default /.tetradic) ($.default /.Spread) ($.default /.Palette)] [/named.documentation])) diff --git a/stdlib/source/documentation/lux/data/color/named.lux b/stdlib/source/documentation/lux/data/color/named.lux index 6f9a080eb..b0a6d88ba 100644 --- a/stdlib/source/documentation/lux/data/color/named.lux +++ b/stdlib/source/documentation/lux/data/color/named.lux @@ -14,7 +14,7 @@ ["." template]] [math [number - ["." nat ("#\." hex)]]]]] + ["." nat ("hex\." hex)]]]]] [\\library ["." / ["/#" //]]]) @@ -23,9 +23,9 @@ [(documentation: <name> (let [[red green blue] (//.rgb <name>) [_ name] (name_of <name>)] - (format "R:" (nat\encode red) - " G:" (nat\encode green) - " B:" (nat\encode blue) + (format "R:" (hex\encoded red) + " G:" (hex\encoded green) + " B:" (hex\encoded blue) " | " (text.replaced "_" " " name))))] [/.alice_blue] diff --git a/stdlib/source/documentation/lux/data/product.lux b/stdlib/source/documentation/lux/data/product.lux index 78d0d5aaa..f1abaffcd 100644 --- a/stdlib/source/documentation/lux/data/product.lux +++ b/stdlib/source/documentation/lux/data/product.lux @@ -39,7 +39,7 @@ (.def: .public documentation (.List $.Module) ($.module /._ - "" + "Functionality for working with tuples (particularly 2-tuples/pairs)." [..left ..right ..curried diff --git a/stdlib/source/documentation/lux/data/text/encoding/utf8.lux b/stdlib/source/documentation/lux/data/text/encoding/utf8.lux index cfe8aee01..dc9a199f3 100644 --- a/stdlib/source/documentation/lux/data/text/encoding/utf8.lux +++ b/stdlib/source/documentation/lux/data/text/encoding/utf8.lux @@ -10,9 +10,12 @@ [\\library ["." /]]) +(documentation: /.codec + "A codec for binary encoding of text as UTF-8.") + (.def: .public documentation (.List $.Module) ($.module /._ "" - [($.default /.codec)] + [..codec] [])) diff --git a/stdlib/source/documentation/lux/data/text/unicode/block.lux b/stdlib/source/documentation/lux/data/text/unicode/block.lux index 703ac9f58..faa9d8833 100644 --- a/stdlib/source/documentation/lux/data/text/unicode/block.lux +++ b/stdlib/source/documentation/lux/data/text/unicode/block.lux @@ -9,7 +9,7 @@ ["." template]] [math [number - ["." nat ("#\." hex)]]]]] + ["." nat ("hex\." hex)]]]]] [\\library ["." /]]) @@ -27,8 +27,8 @@ (template [<name>] [(documentation: <name> (let [[_ name] (name_of <name>)] - (format (nat\encode (/.start <name>)) - "-" (nat\encode (/.end <name>)) + (format (hex\encoded (/.start <name>)) + "-" (hex\encoded (/.end <name>)) " | " (text.replaced "_" " " name))))] [/.basic_latin] |