Core Library0.xAPI reference

Choose documentation 1

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

function libtmux-kotlin

filter

Selects the elements an expression matches.

Source and package
Qualified name
io.github.libtmux.kotlin.Iterable.filter
Package
io.github.libtmux.kotlin.Iterable
Distribution
io.github.libtmux:libtmux-kotlin
Source
libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Filters.kt

Description

Kotlin's own filter takes a function, not a java.util.function.Predicate, so handing it a FilterExpr does not compile — the one place where reading the Java documentation and writing Kotlin part company. This is that overload, so panes.filter(Pane_.active().isTrue()) means what it appears to.

The list is already in hand: this asks tmux nothing.

Type parameters
  • T for filter(expression) [overload 1]

    Bound Any

Parameters

Recorded calls

source calls
No call edges in the Kotlin model.

The Kotlin reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls io.github.libtmux.kotlin.Iterable.filter.

Esc
Search in

Type to search.

Reference previewOpen reference