list_create Interface

public interface list_create

Creates a list. Create as empty list or from other object.



Module Procedures

private function list_create_empty(r) result(ierror)

Creates an empty list. Python equivalent: r = []

Arguments

Type IntentOptional AttributesName
type(list), intent(out) :: r

the freshly created empty list

Return Value integer(kind=C_INT)

Error code, 0 on success

private function list_create_object(r, obj) result(ierror)

Creates a list from given object if possible. Python equivalent: r = list(obj)

Arguments

Type IntentOptional AttributesName
type(list), intent(out) :: r

the freshly created list

class(object), intent(in) :: obj

object to create list from

Return Value integer(kind=C_INT)

Error code, 0 on success