Skip to content

Method array_filter

marufcetin edited this page Sep 1, 2026 · 1 revision

Method: array_filter()

Turkce Dokumantasyon | English Documentation

Category: Helper Methods
Submodule: AmberDB::Array
Entry Type: Predicate Filtering


1. Definition and Overview

array_filter() filters an array using a high-speed CODE reference predicate function without string eval overhead.


2. Syntax and Signature

my @filtered = $adb->array_filter(\&predicate, @array_elements);

3. Practical Code Example

my @evens = $adb->array_filter(sub { $_[0] % 2 == 0 }, 1, 2, 3, 4, 5, 6);
# Returns: (2, 4, 6)

4. See Also

AmberDB Encyclopedia

Home · A-Z Index


Getting Started & Guides


Core Concepts


Core CRUD Methods


Query, Search & Facets


Transactions & Locks


Cache, Buffer & Low-Level


Locale & Helpers


Maintenance & Tools


Configuration Flags


File Formats


Language

Clone this wiki locally