Purely functional data structure: Difference between revisions

Content deleted Content added
m Reverting possible vandalism by BILAL FAROOQ DP to version by Tea2min. Report False Positive? Thanks, ClueBot NG. (3109311) (Bot)
m Several minor grammatical revisions to improve readibility
Line 4:
{{refimprove|date=January 2017}}}}
 
In [[computer science]], a '''purely functional data structure''' is a [[data structure]] that can be implemented in a [[purely functional language]]. The main difference between an arbitrary data structure and a purely functional one is that thea latterpurely functional data structure is (strongly) [[immutable object|immutable]]. This restriction ensures that the data structure possesses the advantages of immutable objects: (full) [[persistent data structure|persistency]],<nowiki/> quick copy of objects, and [[thread safety]]. Efficient purely functional data structures may require the use of [[lazy evaluation]] and [[memoization]].
 
==Definition==