commit | author | age
|
5cb5f7
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file uses dynamic docstrings, first added in Emacs 19.29. |
|
7 |
|
|
8 |
;;; This file does not contain utf-8 non-ASCII characters, |
|
9 |
;;; and so can be loaded in Emacs versions earlier than 23. |
|
10 |
|
|
11 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
12 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
13 |
|
|
14 |
|
|
15 |
(custom-declare-group 'dash nil "Customize group for dash.el" :group 'lisp :prefix "dash-") |
|
16 |
#@21 |
|
17 |
|
|
18 |
(fn SYMBOL VALUE) |
|
19 |
(defalias 'dash--enable-fontlock #[514 "\211\203 \300 \210\301\"\207" [dash-enable-font-lock set-default] 5 (#$ . 500)]) |
|
20 |
(byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313& \207" [custom-declare-variable dash-enable-fontlock funcall function #[0 "\300\207" [nil] 1] "If non-nil, enable fontification of dash functions, macros and\nspecial values." :type boolean :set dash--enable-fontlock :group dash] 10) |
|
21 |
#@64 Destructive: Set CDR to the cons of CAR and CDR. |
|
22 |
|
|
23 |
(fn CAR CDR) |
|
24 |
(defalias '!cons '(macro . #[514 "\300\301EE\207" [setq cons] 7 (#$ . 947)])) |
|
25 |
#@54 Destructive: Set LIST to the cdr of LIST. |
|
26 |
|
|
27 |
(fn LIST) |
|
28 |
(defalias '!cdr '(macro . #[257 "\300\301DE\207" [setq cdr] 5 (#$ . 1097)])) |
|
29 |
#@50 Anaphoric form of `-each'. |
|
30 |
|
|
31 |
(fn LIST &rest BODY) |
|
32 |
(defalias '--each '(macro . #[385 "\300\301!\302D\303B\304\302\305\306DDCBB\307\310D\257E\207" [make-symbol "list" let ((it-index 0)) while it car (setq it-index (1+ it-index)) !cdr] 11 (#$ . 1235)])) |
|
33 |
(byte-code "\300\301\302\303#\210\304\301\305\306#\300\207" [put --each edebug-form-spec (form body) function-put lisp-indent-function 1] 4) |
|
34 |
#@251 Eval a form, then insert that form as the 2nd argument to other forms. |
|
35 |
The EVAL-INITIAL-VALUE form is evaluated once. Its result is |
|
36 |
passed to FORMS, which are then evaluated sequentially. Returns |
|
37 |
the target form. |
|
38 |
|
|
39 |
(fn EVAL-INITIAL-VALUE &rest FORMS) |
|
40 |
(defalias '-doto '(macro . #[385 "\300\301!\302DC\303\304\305\306\307\310\311 !\312\"\313\314%\"C\"BB\207" [make-symbol "value" let append mapcar make-byte-code 257 "\301!\203 \302!\300ABB\207\303\304\300E\207" vconcat vector [sequencep -first-item funcall form] 4 "\n\n(fn FORM)"] 13 (#$ . 1643)])) |
|
41 |
(byte-code "\300\301\302\303#\300\207" [function-put -doto lisp-indent-function 1] 4) |
|
42 |
#@88 Call FN with every item in LIST. Return nil, used for side-effects only. |
|
43 |
|
|
44 |
(fn LIST FN) |
|
45 |
(defalias '-each #[514 "\300\205 @!\266\211T\262A\262\202 \207" [0] 7 (#$ . 2295)]) |
|
46 |
(byte-code "\300\301\302\303#\210\304\305\306\"\207" [put -each lisp-indent-function 1 defalias --each-indexed --each] 4) |
|
47 |
#@170 Call (FN index item) for each item in LIST. |
|
48 |
|
|
49 |
In the anaphoric form `--each-indexed', the index is exposed as symbol `it-index'. |
|
50 |
|
|
51 |
See also: `-map-indexed'. |
|
52 |
|
|
53 |
(fn LIST FN) |
|
54 |
(defalias '-each-indexed #[514 "\300\205 @\"\266\211T\262A\262\202 \207" [0] 8 (#$ . 2606)]) |
|
55 |
(put '-each-indexed 'lisp-indent-function 1) |
|
56 |
#@61 Anaphoric form of `-each-while'. |
|
57 |
|
|
58 |
(fn LIST PRED &rest BODY) |
|
59 |
(defalias '--each-while '(macro . #[642 "\300\301!\300\302!\303D\304B\305BB\306\307E\303\310\311DDC\312\313D\314 \315BBBBBE\316\317D\257E\207" [make-symbol "list" "continue" let (t) ((it-index 0)) while and it car if not setq (nil) (setq it-index (1+ it-index)) !cdr] 16 (#$ . 2931)])) |
|
60 |
(byte-code "\300\301\302\303#\210\304\301\305\306#\300\207" [put --each-while edebug-form-spec (form form body) function-put lisp-indent-function 2] 4) |
|
61 |
#@122 Call FN with every item in LIST while (PRED item) is non-nil. |
|
62 |
Return nil, used for side-effects only. |
|
63 |
|
|
64 |
(fn LIST PRED FN) |
|
65 |
(defalias '-each-while #[771 "\300\301\205) \205) @!\204 \302\262\202 !\210\210\211T\262A\262\202 \207" [t 0 nil] 9 (#$ . 3452)]) |
|
66 |
(put '-each-while 'lisp-indent-function 2) |
|
67 |
#@52 Anaphoric form of `-each-r'. |
|
68 |
|
|
69 |
(fn LIST &rest BODY) |
|
70 |
(defalias '--each-r '(macro . #[385 "\300\301!\302\303DD\304\305DD\306BB\307\310\311\312\313\314\315BBEBBBBE\207" [make-symbol "vector" let* vconcat it-index length (it) while (> it-index 0) (setq it-index (1- it-index)) setq it aref (it-index)] 13 (#$ . 3767)])) |
|
71 |
(byte-code "\300\301\302\303#\210\304\301\305\306#\300\207" [put --each-r edebug-form-spec (form body) function-put lisp-indent-function 1] 4) |
|
72 |
#@107 Call FN with every item in LIST in reversed order. |
|
73 |
Return nil, used for side-effects only. |
|
74 |
|
|
75 |
(fn LIST FN) |
|
76 |
(defalias '-each-r #[514 "\300!\211G\301\302V\205 S\262H\262!\210\202 \207" [vconcat nil 0] 7 (#$ . 4239)]) |
|
77 |
#@63 Anaphoric form of `-each-r-while'. |
|
78 |
|
|
79 |
(fn LIST PRED &rest BODY) |
|
80 |
(defalias '--each-r-while '(macro . #[642 "\300\301!\302\303DD\304\305DD\306BB\307\310\311\312\313\314\315BBE\316\317\nD\320\nBBB\257E\207" [make-symbol "vector" let* vconcat it-index length (it) while (> it-index 0) (setq it-index (1- it-index)) setq it aref (it-index) if not (setq it-index -1)] 14 (#$ . 4470)])) |
|
81 |
(byte-code "\300\301\302\303#\210\304\301\305\306#\300\207" [put --each-r-while edebug-form-spec (form form body) function-put lisp-indent-function 2] 4) |
|
82 |
#@131 Call FN with every item in reversed LIST while (PRED item) is non-nil. |
|
83 |
Return nil, used for side-effects only. |
|
84 |
|
|
85 |
(fn LIST PRED FN) |
|
86 |
(defalias '-each-r-while #[771 "\300!\211G\301\302V\205( S\262H\262!\204! \303\262\202 !\210\202 \207" [vconcat nil 0 -1] 8 (#$ . 5018)]) |
|
87 |
#@134 Repeatedly executes BODY (presumably for side-effects) with symbol `it' bound to integers from 0 through NUM-1. |
|
88 |
|
|
89 |
(fn NUM &rest BODY) |
|
90 |
(defalias '--dotimes '(macro . #[385 "\300\301!\302D\303B\304\305\306E\307\310\"BBE\207" [make-symbol "num" let ((it 0)) while < it append ((setq it (1+ it)))] 10 (#$ . 5307)])) |
|
91 |
(byte-code "\300\301\302\303#\210\304\301\305\306#\300\207" [put --dotimes edebug-form-spec (form body) function-put lisp-indent-function 1] 4) |
|
92 |
#@106 Repeatedly calls FN (presumably for side-effects) passing in integers from 0 through NUM-1. |
|
93 |
|
|
94 |
(fn NUM FN) |
|
95 |
(defalias '-dotimes #[514 "\300\211W\205 !\210\211T\262\202 \207" [0] 6 (#$ . 5774)]) |
|
96 |
(put '-dotimes 'lisp-indent-function 1) |
|
97 |
#@95 Return a new list consisting of the result of applying FN to the items in LIST. |
|
98 |
|
|
99 |
(fn FN LIST) |
|
100 |
(defalias '-map #[514 "\300\"\207" [mapcar] 5 (#$ . 6018)]) |
|
101 |
#@43 Anaphoric form of `-map'. |
|
102 |
|
|
103 |
(fn FORM LIST) |
|
104 |
(defalias '--map '(macro . #[514 "\300\301\302EE\207" [mapcar lambda (it)] 6 (#$ . 6180)])) |
|
105 |
(put '--map 'edebug-form-spec '(form form)) |
|
106 |
#@65 Anaphoric form of `-reduce-from'. |
|
107 |
|
|
108 |
(fn FORM INITIAL-VALUE LIST) |
|
109 |
(defalias '--reduce-from '(macro . #[771 "\300\301DC\302\303\301EE\304BBB\207" [let acc --each setq (acc)] 10 (#$ . 6366)])) |
|
110 |
(put '--reduce-from 'edebug-form-spec '(form form form)) |
|
111 |
#@354 Return the result of applying FN to INITIAL-VALUE and the |
|
112 |
first item in LIST, then applying FN to that result and the 2nd |
|
113 |
item, etc. If LIST contains no items, return INITIAL-VALUE and |
|
114 |
do not call FN. |
|
115 |
|
|
116 |
In the anaphoric form `--reduce-from', the accumulated value is |
|
117 |
exposed as symbol `acc'. |
|
118 |
|
|
119 |
See also: `-reduce', `-reduce-r' |
|
120 |
|
|
121 |
(fn FN INITIAL-VALUE LIST) |
|
122 |
(defalias '-reduce-from #[771 "\300\203 @\"\262\210\211T\262A\262\202 \266\211\207" [0] 10 (#$ . 6623)]) |
|
123 |
#@46 Anaphoric form of `-reduce'. |
|
124 |
|
|
125 |
(fn FORM LIST) |
|
126 |
(defalias '--reduce '(macro . #[514 "\300\301!\302DC\303\304\305D\306DF\302\307 EFE\207" [make-symbol "list-value" let if --reduce-from car cdr (acc it)] 12 (#$ . 7102)])) |
|
127 |
(put '--reduce 'edebug-form-spec '(form form)) |
|
128 |
#@404 Return the result of applying FN to the first 2 items in LIST, |
|
129 |
then applying FN to that result and the 3rd item, etc. If LIST |
|
130 |
contains no items, return the result of calling FN with no |
|
131 |
arguments. If LIST contains a single item, return that item |
|
132 |
and do not call FN. |
|
133 |
|
|
134 |
In the anaphoric form `--reduce', the accumulated value is |
|
135 |
exposed as symbol `acc'. |
|
136 |
|
|
137 |
See also: `-reduce-from', `-reduce-r' |
|
138 |
|
|
139 |
(fn FN LIST) |
|
140 |
(defalias '-reduce #[514 "\211\203\f \300@A#\207 \207" [-reduce-from] 6 (#$ . 7383)]) |
|
141 |
#@70 Anaphoric version of `-reduce-r-from'. |
|
142 |
|
|
143 |
(fn FORM INITIAL-VALUE LIST) |
|
144 |
(defalias '--reduce-r-from '(macro . #[771 "\300\301DF\207" [--reduce-from reverse] 8 (#$ . 7882)])) |
|
145 |
(put '--reduce-r-from 'edebug-form-spec '(form form form)) |
|
146 |
#@331 Replace conses with FN, nil with INITIAL-VALUE and evaluate |
|
147 |
the resulting expression. If LIST is empty, INITIAL-VALUE is |
|
148 |
returned and FN is not called. |
|
149 |
|
|
150 |
Note: this function works the same as `-reduce-from' but the |
|
151 |
operation associates from right instead of from left. |
|
152 |
|
|
153 |
See also: `-reduce-r', `-reduce' |
|
154 |
|
|
155 |
(fn FN INITIAL-VALUE LIST) |
|
156 |
(defalias '-reduce-r-from #[771 "\300!\301\203 @\"\262\210\211T\262A\262\202 \266\211\207" [reverse 0] 10 (#$ . 8121)]) |
|
157 |
#@51 Anaphoric version of `-reduce-r'. |
|
158 |
|
|
159 |
(fn FORM LIST) |
|
160 |
(defalias '--reduce-r '(macro . #[514 "\300\301DE\207" [--reduce reverse] 6 (#$ . 8592)])) |
|
161 |
(put '--reduce-r 'edebug-form-spec '(form form)) |
|
162 |
#@480 Replace conses with FN and evaluate the resulting expression. |
|
163 |
The final nil is ignored. If LIST contains no items, return the |
|
164 |
result of calling FN with no arguments. If LIST contains a single |
|
165 |
item, return that item and do not call FN. |
|
166 |
|
|
167 |
The first argument of FN is the new item, the second is the |
|
168 |
accumulated value. |
|
169 |
|
|
170 |
Note: this function works the same as `-reduce' but the operation |
|
171 |
associates from right instead of from left. |
|
172 |
|
|
173 |
See also: `-reduce-r-from', `-reduce' |
|
174 |
|
|
175 |
(fn FN LIST) |
|
176 |
(defalias '-reduce-r #[514 "\211\203: \300!\211\2031 \211@A\301\203) @\"\262\210\211T\262A\262\202 \266\211\262\2029 \302\211\"\266\202\207 \207" [reverse 0 nil] 10 (#$ . 8791)]) |
|
177 |
#@188 Return a list of the intermediate values of the reduction. |
|
178 |
|
|
179 |
See `-reduce-from' for explanation of the arguments. |
|
180 |
|
|
181 |
See also: `-reductions', `-reductions-r', `-reduce-r' |
|
182 |
|
|
183 |
(fn FN INIT LIST) |
|
184 |
(defalias '-reductions-from #[771 "C\300\203 |