OpenQuizz
Une application de gestion des contenus pédagogiques
pyrsistent._plist Namespace Reference

Data Structures

class  _EmptyPList
 
class  _PListBase
 
class  _PListBuilder
 
class  PList
 

Functions

def plist (iterable=(), reverse=False)
 
def l (*elements)
 

Function Documentation

◆ l()

def pyrsistent._plist.l ( elements)
Creates a new persistent list containing all arguments.

>>> l(1, 2, 3)
plist([1, 2, 3])

◆ plist()

def pyrsistent._plist.plist (   iterable = (),
  reverse = False 
)
Creates a new persistent list containing all elements of iterable.
Optional parameter reverse specifies if the elements should be inserted in
reverse order or not.

>>> plist([1, 2, 3])
plist([1, 2, 3])
>>> plist([1, 2, 3], reverse=True)
plist([3, 2, 1])