g(x) =
    println($"g($x)")
    value $"Done - $x"

declare val

f(key) =
    .MEMO: :value: $(val) :key: $(key)
        y = $(g $(val) $(key))
    value $y

test(x) =
    section
        val = $(x)1
        println($(f 1))
    section
        val = $(x)2
        println($(f 2))

test(1-)
test(1-)
test(2-)
test(2-)

.SUBDIRS: .
    value
