Returns array of tuples with pairs of keys and values from associative array.
Implementation of the complement operation for arrays.
Implementation of the intersection operation for arrays.
Implementation of the union operation for arrays.
The function converts JSONValue to double.
Creates a new dynamic array of the same size and copies the contents of the dynamic array into it. This function supports arrays with complex constant structures, unlike the 'dup' function.
Counts the number of required elements in a range.
Divides an array: makes a new array of arrays containing elements from source array. Each subarray contains specified number of elements.
Function for extracting of value as array by flag. Unlike getOptionRange(), this function changes the passed arguments (args), removing the flag with a value.
Function for extracting of value by flag. Unlike getOptionValue(), this function changes the passed args, removing the flag with a value.
The function converts integer number into an binary form.
The function returns the index of the array element by value.
The function converts integer number into an octal form, returns as a string.
Function to get values as array by flag.
Function to get a value by parameter. Used to process command line arguments.
The function similar to functions "canFind" and "among".
Creates new array with specified content.
This function combines two associative arrays, returns new associative array. If two arrays have the same keys, the values from the first array are used.
The function arranges the associative array by the required sorting method (string "by" is equal to "values" or "keys"), returns an array of keys and an array of values.
The function arranges the associative array by keys, returns an array of keys and an array of values.
The function arranges the associative array by values, returns an array of keys and an array of values.
The function removes duplicate elements from an array.
The function removes consecutive string duplicates.
The function returns an array without unnecessary elements.
Makes key-sorted array of tuples with pairs of keys and values from associative array.
Makes value-sorted array of tuples with pairs of keys and values from associative array.
Cuts off consecutive unnecessary characters from the left side.
Cuts off consecutive unnecessary characters from the right side.
Encode associative array using www-form-urlencoding (copied from std.uri).
This file is part of the Amalthea library. Copyright (C) 2018-2024 Eugene 'Vindex' Stulin Distributed under the BSL 1.0 or (at your option) the GNU LGPL 3.0 or later.
The module contains some useful functions for data processing, including functions for working with dynamic arrays and associative arrays, functions for working with command line arguments, operations on arrays as sets, some functions for working with strings, etc.