add path manipulation functions
This commit is contained in:
parent
a711b32730
commit
3b1ae0efd5
3 changed files with 24 additions and 2 deletions
|
|
@ -100,3 +100,12 @@ Returns true if the list contains the element.'
|
|||
(set (q found) true)
|
||||
(set (q list-iter) (pop remaining)))))
|
||||
found))
|
||||
|
||||
(def get-paths
|
||||
'returns each individual directory in PATH'
|
||||
() (split PATH ':'))
|
||||
|
||||
(def add-path
|
||||
'adds a directory to PATH'
|
||||
(path) (set (q PATH)
|
||||
(concat PATH ':' path)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue