aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/data/identity.lux
blob: e2912a73b24809dc94ff9ec62585521c6928f9fa (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
25
(.module:
  [library
   [lux {"-" [nat int rev list type or and]}
    ["$" documentation {"+" [documentation:]}]
    [data
     [text {"+" [\n]}
      ["%" format {"+" [format]}]]]
    [macro
     ["." template]]]]
  [\\library
   ["." /]])

(documentation: (/.Identity it)
  "A value, as is, without any extra structure super-imposed on it.")

(.def: .public documentation
  (.List $.Module)
  ($.module /._
            ""
            [..Identity
             ($.default /.functor)
             ($.default /.apply)
             ($.default /.monad)
             ($.default /.comonad)]
            []))