# 22. Virtuoso Functions Guide - dict_duplicate

Chapter Contents | Prev | Next
Keyword Search:
www.openlinksw.com
docs.openlinksw.com
Book Home
Contents
Preface
Virtuoso Functions Guide
Administration
Aggregate Functions
Array Manipulation
BPEL APIs
Backup
Compression
Cursor
Date & Time Manipulation
Debug
Dictionary Manipulation
dict_duplicate
dict_get
dict_list_keys
dict_new
dict_put
dict_remove
dict_to_vector
Encoding & Decoding
File Manipulation
Free Text
Hashing / Cryptographic
LDAP
Locale
Mail
Miscellaneous
Number
Remote SQL Data Source
Replication
SOAP
SQL
String
Transaction
Type Mapping
UDDI
User Defined Types & The CLR
Virtuoso Java PL API
Virtuoso Server Extension Interface (VSEI)
Web Server & Internet
XML
XPATH & XQUERY
Functions Index

## dict_duplicate

Creates a copy of the given dictionary.
dictionary dict_duplicate (in dict dictionary);
Description

The function creates a full copy of the given dictionary.

Dictionary objects are always passed by reference, even if dictionary is passed as an 'in' argument of a function. If value of a variable is a dictionary and it is assigned to other variable then both variables refer to the same internal hash table. This function returns a really independent dictionary object.

This function duplicates the given dictionary but does not duplicate dictionaries that may be stored in key-value pairs.

Parameters
dcit – The dictionary to be duplicated.
Return Types

The function returns a new dictionary object.

See Also

dict_new

dict_put

dict_get

dict_remove

dict_to_vector

dict_list_keys