aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/control/lazy.lux
blob: d54b67d997c2e36ca3b0a9fc10c34802f31e4365 (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
26
27
28
29
30
31
32
(.using
 [library
  [lux (.except if loop)
   ["$" documentation (.only documentation:)]
   [data
    [text (.only \n)
     ["%" \\format (.only format)]]]
   [macro
    ["[0]" template]]]]
 [\\library
  ["[0]" /]])

(documentation: (/.Lazy it)
  (format "A value specified by an expression that is calculated only at the last moment possible."
          \n "Afterwards, the value is cached for future reference."))

(documentation: /.lazy
  "Specifies a lazy value by providing the expression that computes it."
  [(lazy eager_computation)])

(.def .public documentation
  (.List $.Module)
  ($.module /._
            ""
            [..Lazy
             ..lazy
             ($.default /.value)
             ($.default /.equivalence)
             ($.default /.functor)
             ($.default /.apply)
             ($.default /.monad)]
            []))