Hi Lutz,
Should this happen?
Perhpas its just a little too nested?
newLISP v.9.0 on Linux, execute 'newlisp -h' for more info.
> (select D (index true? (map directory? (setq D (directory)))))
Segmentation fault
Norman.
select "segmentation fault"
select "segmentation fault"
-- (define? (Cornflakes))
just an addon...
The above was on my path by creating the smalest directory selection from a bunch of files.. So if the above doesn't work then i guess this is
the smallest a "directory filter" can get in newlisp ->
(and (setq X (index true? (map directory? (setq D (directory))))) (select D X))
Norman.
The above was on my path by creating the smalest directory selection from a bunch of files.. So if the above doesn't work then i guess this is
the smallest a "directory filter" can get in newlisp ->
(and (setq X (index true? (map directory? (setq D (directory))))) (select D X))
Norman.
-- (define? (Cornflakes))
The first definition crashes because D is modified by 'setq' while beeing used by 'select'.
Also using 'select' with an index list constructed using 'index' is the same as using 'filter', so why not just doing?
or if you want all files not a directory:
Lutz
Also using 'select' with an index list constructed using 'index' is the same as using 'filter', so why not just doing?
Code: Select all
(filter directory? (directory))
Code: Select all
(clean directory? (directory))
It was put in @ v.8.8.7 according to the 8.9 release notes.