aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/abstract/mix.lux
blob: 73b23e6287c5f3e36a2f3c45ca8212a3de01b55a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(.module:
  [library
   [lux
    ["$" documentation (#+ documentation:)]
    [data
     [text (#+ \n)
      ["%" format (#+ format)]]]]]
  [\\library
   ["." /]])

(documentation: /.Mix
  "Iterate over a structure's values to build a summary value.")

(documentation: /.with_monoid
  "Mix a mixable structure using the monoid's identity as the initial value."
  [(with_monoid monoid mix value)])

(.def: .public documentation
  (.List $.Module)
  ($.module /._
            ""
            [..Mix
             ..with_monoid]
            []))