Skip to content

Method array_sublist

marufcetin edited this page Sep 1, 2026 · 1 revision

Method: array_sublist()

Turkce Dokumantasyon | English Documentation

Category: Helper Methods
Submodule: AmberDB::Array
Entry Type: Array Chunking


1. Definition and Overview

array_sublist() splits a flat list into chunks (sub-lists) of a specified size (e.g. 2, 3, 4, 6, 12).


2. Syntax and Signature

my @chunks = $adb->array_sublist($chunk_size, @elements);

3. Practical Code Example

my @matrix = $adb->array_sublist(2, "a", "b", "c", "d");
# Returns: ( ["a", "b"], ["c", "d"] )

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