python_internal_ArrayImpl

python_internal_ArrayImpl

Overview

python_internal_ArrayImpl is a class in Aspose.Font FOSS for Python.

This class provides 18 methods for working with python_internal_ArrayImpl objects in Python programs. Available methods include: concat, filter, get_length, indexOf, insert, iterator, lastIndexOf, map, pop, push, remove, reverse, and 6 additional methods. All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.

Methods

SignatureDescription
get_length(x)Returns the number of elements in the given array
concat(a1, a2)Returns a new array containing the elements of a1 followed by the elements of a2, enabling easy merging of glyph ID lists
iterator(x)Returns an iterator object for traversing array x
indexOf(a, x, fromIndex)Returns the first index of x in array a starting at fromIndex
lastIndexOf(a, x, fromIndex)Calls lastIndexOf on this python_internal_ArrayImpl instance.
toString(x)Returns a string representation of array x
pop(x)Removes and returns the last element of the array x, mirroring typical array pop semantics
push(x, e)Appends element e to the end of array x and returns new length
unshift(x, e)Inserts element e at the start of array x and returns new length
remove(x, e)Deletes the first occurrence of element e from array x
shift(x)Removes and returns the first element of array x
slice(x, pos, end)Returns a shallow copy of array x from pos up to but not including end
sort(x, f)Sorts array x in place using comparator function f
splice(x, pos, _hx_len)Removes _hx_len elements from array x starting at pos and returns removed items
map(x, f)Returns a new array with function f applied to each element of x
filter(x, f)Returns a new array containing elements of x for which f returns true
insert(a, pos, x)Inserts element x into array a at index pos
reverse(a)Reverses the order of elements in array a in place

See Also