# Why no single argument \`filter!(f::Function)\` or \`Iterators.filter(f::Function)\`?

**URL:** <https://discourse.julialang.org/t/why-no-single-argument-filter-f-function-or-iterators-filter-f-function/131190>\
**Category:** Internals & Design\
**Created:** [July 30, 2025, 9:30am UTC](https://discourse.julialang.org/t/why-no-single-argument-filter-f-function-or-iterators-filter-f-function/131190 "2025-07-30T09:30:27Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Post date:** [October 19, 2025, 10:40am UTC](https://discourse.julialang.org/t/why-no-single-argument-filter-f-function-or-iterators-filter-f-function/131190/21 "2025-10-19T10:40:36Z")

</div>

> [@aplavin](#):
>
> Anonymous functions are heavily used in Julia code, what alternative do you suggest?

I prefer named functions to anonymous functions. An anonymous function is really just a named function with an ugly, generated name, lacking in meaning.

[Previous page](https://discourse.julialang.org/t/why-no-single-argument-filter-f-function-or-iterators-filter-f-function/131190.md?page=1)
