DoubleEnded.DoubleEnded
— ModuleAuthor: John Tinnerholm This package provides a DoubleEnded list with various utility methods.
DoubleEnded.MutableList
— TypeDefintion of the Double ended mutable list
DoubleEnded.clear
— MethodResets the MutableList.
DoubleEnded.currentBackCell
— MethodReturns the current back cell of the MutableList, delst.
DoubleEnded.fromList
— MethodConverts an Immutable list, lst into an MutableList.
DoubleEnded.mapFoldNoCopy
— MethodThis functions folds a MutableList. Delst using inMapFunc together with the extra argument arg.
DoubleEnded.mapNoCopy_1
— MethodThis function takes a higher order function(inMapFunc) and one argument(ArgT1). It applies these function to each element in the list mutating it and by doing so updating the list.
DoubleEnded.new
— MethodCreates a new Mutable list with one element, first of type T.
DoubleEnded.pop_front
— MethodPops and returns the first element of the MutableList, delst.
DoubleEnded.push_back
— MethodPushes an element elt at the back of the mutable list delst.
DoubleEnded.push_front
— MethodPrepends an element elt at the front of the MutableList delst.
DoubleEnded.push_list_back
— MethodAppends the ImmutableList lst at the back of the MutableList delst.
DoubleEnded.push_list_front
— MethodPrepends the immutable list lst at the front of the MutableList, delst.
DoubleEnded.toListAndClear
— MethodReturns an immutable List and clears the MutableList
DoubleEnded.toListNoCopyNoClear
— MethodReturns an Immutable list without changing the MutableList.
Base.length
— MethodReturns the length of the MutableList, delst
DoubleEnded.empty
— MethodCreates a new empty MutableList
DoubleEnded.empty
— MethodCreates a new empty MutableList