rev: 08a0786d94a50b3b229836c53a03976f10ab6bd7 scopes/doc/docs/module-chaining.md -rw-r--r-- 817 bytes View raw Log this file
08a0786d94a5Shawn Walker-Salas * drop number sections in menu due to readthedocs theme incompatibility 19 days ago
                                                                                
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
33
<style type="text/css" rel="stylesheet">body { counter-reset: chapter 10; }</style>

chaining
========

chaining provides the `-->` operator, which allows the nesting of
expressions by chaining them in a sequence.

*sugar*{.property} (`-->`{.descname} *&ensp;...&ensp;*) [](#scopes.sugar.--> "Permalink to this definition"){.headerlink} {#scopes.sugar.-->}

:   Expands a processing chain into nested expressions so that each expression
    is passed as a tailing argument to the following expression.
    
    `__` can be used as a placeholder token to position the previous expression.
    
    Example:
    
        :::scopes
        --> x
            f
            g
            h 2 __
            k
    
    Expands to:
    
        :::scopes
        k
            h 2
                g
                    f x