User Tools

Site Tools


xrpl:deepcopylist

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
xrpl:deepcopylist [2019/03/03 21:38] Karsten75xrpl:deepcopylist [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
- 
-=====  DeepCopyList   ===== 
- 
-^Arguments^Result^Notation^ 
-| original | copy | [ list - list ] | 
- 
- 
-=== Description === 
-Creates a copy of a list with the same contents. Unlike [[.:CopyList|CopyList]], if the copied list contains other lists, those lists will be copied as well (and if those lists contain other lists, even those will be copied, etc, etc). See [[.:copy_vs_deep_copy|Copy vs Deep Copy]] for more info. 
- 
-=== Examples === 
-<code> 
-Split("A,B,C" ",") ->listInner 
-Split("1,2,3,4,5,6" ",") ->list 
-<-list <-listInner AppendToList 
-  
-<-list CopyList ->listCopy 
-<-list DeepCopyList ->listDeepCopy 
-SetListElement(<-listInner 0 "banana" 
-SetListElement(<-list 0 "orange" 
- 
-Trace(<-list)  
-Trace(<-listCopy)  
-Trace(<-listDeepCopy)  
-</code> 
  
xrpl/deepcopylist.1551649105.txt.gz · Last modified: 2025/02/14 14:56 (external edit)