You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If dir accepted a filter parameter (a predicate function) then it would be easier to filter out specific file types (e.g. files with a mode of 'file', files created in the last N days) without having to resort to additional nesting within the generic for.
(One particularly notable use of such a feature would be to filter out '..' and '.' as they often aren't relevant.)
The text was updated successfully, but these errors were encountered:
If
dir
accepted afilter
parameter (a predicate function) then it would be easier to filter out specific file types (e.g. files with amode
of'file'
, files created in the last N days) without having to resort to additional nesting within the genericfor
.(One particularly notable use of such a feature would be to filter out
'..'
and'.'
as they often aren't relevant.)The text was updated successfully, but these errors were encountered: