File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 73
73
74
74
; ;; Util
75
75
76
- (defun isearch-project--flatten-list (l )
77
- " Flatten the multiple dimensional array, L to one dimensonal array.
78
- For instance,
79
- '(1 2 3 4 (5 6 7 8)) => '(1 2 3 4 5 6 7 8). "
80
- ( cond ((null l ) nil )
81
- ((atom l ) (list l ))
82
- (t (loop for a in l appending (isearch-project--flatten-list a )))))
76
+ (defun isearch-project--flatten-list (lst )
77
+ " Flatten the multiple dimensional array, LST to one dimensonal array.
78
+ For instance, '(1 2 3 4 (5 6 7 8)) => '(1 2 3 4 5 6 7 8). "
79
+ ( cond
80
+ ((null lst ) nil )
81
+ ((atom lst ) (list lst ))
82
+ (t (append (isearch-project--flatten-list ( car lst)) (isearch-project--flatten-list ( cdr lst) )))))
83
83
84
84
(defun isearch-project--is-contain-list-string (in-list in-str )
85
85
" Check if IN-STR contain in any string in the IN-LIST."
You can’t perform that action at this time.
0 commit comments