📄 refj.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>J</title><link rel="stylesheet" href="doc.css" type="text/css"></head><body><h1>J</h1><dl><dt><a name="job"><code>(job 'lst . prg) -> any</code></a><dd>Executes a job within its own environment (as specified by symbol-valuepairs in <code>lst</code>). The current values of all symbols are saved, thesymbols are bound to the values in <code>lst</code>, <code>prg</code> isexecuted, then the (possibly modified) symbol values are (destructively) storedin the environment list, and the symbols are restored to their original values.The return value is the result of <code>prg</code>. Typically used in <code><ahref="refC.html#curry">curried</a></code> functions and <code><ahref="refR.html#*Run">*Run</a></code> tasks. See also <code><ahref="refE.html#env">env</a></code>, <code><ahref="refB.html#bind">bind</a></code>, <code><ahref="refL.html#let">let</a></code>, <code><ahref="refU.html#use">use</a></code> and <code><ahref="refS.html#state">state</a></code>.<p><pre><code>: (de tst () (job '((A . 0) (B . 0)) (println (inc 'A) (inc 'B 2)) ) )-> tst: (tst)1 2-> 2: (tst)2 4-> 4: (tst)3 6-> 6: (pp 'tst)(de tst NIL (job '((A . 3) (B . 6)) (println (inc 'A) (inc 'B 2)) ) )-> tst</code></pre><dt><a name="journal"><code>(journal 'any ..) -> T</code></a><dd>Reads journal data from the files with the names <code>any</code>, andwrites all changes to the database. See also <code><ahref="refP.html#pool">pool</a></code>.<p><pre><code>: (journal "db.log")-> T</code></pre></dl></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -