diff options
Diffstat (limited to 'stdlib/source/documentation/lux/data')
7 files changed, 35 insertions, 133 deletions
diff --git a/stdlib/source/documentation/lux/data/collection/bits.lux b/stdlib/source/documentation/lux/data/collection/bits.lux index c58e7358a..79d85d7fe 100644 --- a/stdlib/source/documentation/lux/data/collection/bits.lux +++ b/stdlib/source/documentation/lux/data/collection/bits.lux @@ -30,16 +30,6 @@ "" [(bit index bits)]) -(template [<name>] - [(documentation: <name> - "" - [(<name> index input)])] - - [/.one] - [/.zero] - [/.flipped] - ) - (documentation: /.intersects? "" [(intersects? reference sample)]) @@ -48,16 +38,6 @@ "" [(not input)]) -(template [<name>] - [(documentation: <name> - "" - [(<name> param subject)])] - - [/.and] - [/.or] - [/.xor] - ) - (.def: .public documentation (.List $.Module) ($.module /._ @@ -66,21 +46,19 @@ ..size ..capacity ..bit - - ..one - ..zero - ..flipped ..intersects? ..not - - ..and - ..or - ..xor ($.default /.Chunk) ($.default /.chunk_size) ($.default /.empty) ($.default /.empty?) - ($.default /.equivalence)] + ($.default /.equivalence) + ($.default /.one) + ($.default /.zero) + ($.default /.flipped) + ($.default /.and) + ($.default /.or) + ($.default /.xor)] [])) diff --git a/stdlib/source/documentation/lux/data/collection/dictionary/ordered.lux b/stdlib/source/documentation/lux/data/collection/dictionary/ordered.lux index 072d14754..866e5a850 100644 --- a/stdlib/source/documentation/lux/data/collection/dictionary/ordered.lux +++ b/stdlib/source/documentation/lux/data/collection/dictionary/ordered.lux @@ -32,8 +32,7 @@ (template [<name>] [(`` (documentation: <name> - (format "Yields value under the " (~~ (template.text [<name>])) "imum key.") - [(<name> dict)]))] + (format "Yields value under the " (~~ (template.text [<name>])) "imum key.")))] [/.min] [/.max] diff --git a/stdlib/source/documentation/lux/data/collection/list.lux b/stdlib/source/documentation/lux/data/collection/list.lux index 6f60d5085..fe7d11246 100644 --- a/stdlib/source/documentation/lux/data/collection/list.lux +++ b/stdlib/source/documentation/lux/data/collection/list.lux @@ -36,24 +36,6 @@ \n "Caveat emptor: If the list has an un-even number of elements, the last one will be skipped.") [(pairs xs)]) -(template [<name>] - [(documentation: <name> - "" - [(<name> n xs)])] - - [/.first] - [/.after] - ) - -(template [<name>] - [(documentation: <name> - "" - [(<name> predicate xs)])] - - [/.while] - [/.until] - ) - (documentation: /.split_at "" [(split_at n xs)]) @@ -94,15 +76,6 @@ "" [(size list)]) -(template [<name>] - [(documentation: <name> - "" - [(<name> predicate items)])] - - [/.every?] - [/.any?] - ) - (documentation: /.item "Fetches the element at the specified index." [(item i xs)]) @@ -121,8 +94,7 @@ (template [<name> <doc>] [(documentation: <name> - <doc> - [(<name> xs)])] + <doc>)] [/.head "Yields the first element of a list."] [/.tail "For a list of size N, yields the N-1 elements after the first one."] @@ -187,12 +159,6 @@ ..partition ..pairs - ..first - ..after - - ..while - ..until - ..split_at ..split_when ..sub @@ -203,9 +169,6 @@ ..example ..interposed ..size - - ..every? - ..any? ..item ..sorted @@ -235,5 +198,11 @@ ($.default /.zipped/2) ($.default /.zipped/3) ($.default /.zipped_with/2) - ($.default /.zipped_with/3)] + ($.default /.zipped_with/3) + ($.default /.first) + ($.default /.after) + ($.default /.while) + ($.default /.until) + ($.default /.every?) + ($.default /.any?)] [])) diff --git a/stdlib/source/documentation/lux/data/collection/sequence.lux b/stdlib/source/documentation/lux/data/collection/sequence.lux index 44b589ad7..fb97896d9 100644 --- a/stdlib/source/documentation/lux/data/collection/sequence.lux +++ b/stdlib/source/documentation/lux/data/collection/sequence.lux @@ -35,27 +35,6 @@ "" [(item idx sequence)]) -(template [<taker> <dropper>] - [(documentation: <taker> - "" - [(<taker> pred xs)]) - (documentation: <dropper> - "" - [(<dropper> pred xs)])] - - [/.while /.until] - [/.first /.after] - ) - -(template [<splitter>] - [(documentation: <splitter> - "" - [(<splitter> pred xs)])] - - [/.split_when] - [/.split_at] - ) - (documentation: /.only "A new sequence only with items that satisfy the predicate." [(only predicate sequence)]) @@ -81,12 +60,6 @@ ..repeated ..cycle ..item - - ..while ..until - ..first ..after - - ..split_when - ..split_at ..only ..partition @@ -94,5 +67,11 @@ ($.default /.head) ($.default /.tail) ($.default /.functor) - ($.default /.comonad)] + ($.default /.comonad) + ($.default /.while) + ($.default /.until) + ($.default /.first) + ($.default /.after) + ($.default /.split_when) + ($.default /.split_at)] [])) diff --git a/stdlib/source/documentation/lux/data/collection/set/multi.lux b/stdlib/source/documentation/lux/data/collection/set/multi.lux index fa1ee3d23..ea0a017ae 100644 --- a/stdlib/source/documentation/lux/data/collection/set/multi.lux +++ b/stdlib/source/documentation/lux/data/collection/set/multi.lux @@ -28,17 +28,6 @@ "" [(multiplicity set elem)]) -(template [<name>] - [(documentation: <name> - "" - [(<name> parameter subject)])] - - [/.union] - [/.sum] - [/.intersection] - [/.difference] - ) - (documentation: /.sub? "Is 'subject' a sub-set of 'reference'?" [(sub? reference subject)]) @@ -62,10 +51,7 @@ ..has ..lacks ..multiplicity - ..union - ..sum - ..intersection - ..difference + ..sub? ..support ..member? @@ -77,5 +63,9 @@ ($.default /.hash) ($.default /.empty?) ($.default /.of_list) - ($.default /.of_set)] + ($.default /.of_set) + ($.default /.union) + ($.default /.sum) + ($.default /.intersection) + ($.default /.difference)] [])) diff --git a/stdlib/source/documentation/lux/data/color.lux b/stdlib/source/documentation/lux/data/color.lux index 7ad4ed77a..73c383ff1 100644 --- a/stdlib/source/documentation/lux/data/color.lux +++ b/stdlib/source/documentation/lux/data/color.lux @@ -40,17 +40,6 @@ "" [(interpolated ratio end start)]) -(template [<name>] - [(documentation: <name> - "" - [(<name> ratio color)])] - - [/.darker] - [/.brighter] - [/.saturated] - [/.un_saturated] - ) - (syntax: (palette_documentation [[_ name] <code>.identifier]) (in (list (code.text (format "A " (text.replaced "_" "-" name) " palette."))))) @@ -101,11 +90,6 @@ ..Color ..complement ..interpolated - - ..darker - ..brighter - ..saturated - ..un_saturated ..analogous ..monochromatic @@ -137,5 +121,9 @@ ($.default /.of_cmyk) ($.default /.gray_scale) ($.default /.Spread) - ($.default /.Palette)] + ($.default /.Palette) + ($.default /.darker) + ($.default /.brighter) + ($.default /.saturated) + ($.default /.un_saturated)] [/named.documentation])) diff --git a/stdlib/source/documentation/lux/data/format/json.lux b/stdlib/source/documentation/lux/data/format/json.lux index ae21ac641..cf3182daa 100644 --- a/stdlib/source/documentation/lux/data/format/json.lux +++ b/stdlib/source/documentation/lux/data/format/json.lux @@ -34,8 +34,7 @@ (template [<name> <desc>] [(documentation: <name> - (format "A JSON object field getter for " <desc> ".") - [(<name> key json)])] + (format "A JSON object field getter for " <desc> "."))] [/.boolean_field "booleans"] [/.number_field "numbers"] |