mutable
How to append or prepend on a Scala mutable.Seq
There\'s something I don\'t understand about Scala\'s collection.mutable.Seq. It describes the 开发者_JAVA百科interface for all mutable sequences, yet I don\'t see methods to append or prepend element[详细]
2023-03-19 08:53 分类:问答What is the theory behind mutable and immutable types?
One of the things that I admire about Python is its distinction between mutable and immutable types. Having spent a while programming in c before coming to Python, I was astonished at how easily Pytho[详细]
2023-03-17 06:36 分类:问答mutable data in scheme to return pairs where right element is the largest suffix matching a condition
I have this definition \"sort left list\" which is a list of pairs sorted according to the left element of each pair the left element must be a non-negative integer and the right component may be a va[详细]
2023-03-13 14:40 分类:问答How to automatically translate pure code into code that uses mutable arrays for efficiency?
This is a Haskell question, but I\'d also be interested in answers about other languages. Is there a way to automatically translate purely functional code, written to process either lists or immutable[详细]
2023-03-07 10:13 分类:问答Mutable variable available to all classes?
I\'m developing a program in C# and need a mutable variable that is available to all classes in my program.[详细]
2023-03-07 10:06 分类:问答Mutable vs. Immutable with business logic objects
A lot has been said about mutable / immutable objects in the data model. But what about the business logic? For example: a CD player. One class is responsible for playing the CD.[详细]
2023-03-05 18:05 分类:问答Type signatures for a mutable Haskell Heap
I want to make in Haskell a mutable array based heap (the basic kind found everywhere else). There are some things I don\'t like about my initial approach, however:[详细]
2023-03-05 00:01 分类:问答How to convert immutable Seq to mutable seq with until loop
I\'m trying to return a mutable Sequence with an until loop, but i have an immutable seq in return of (0 until nbGenomes) :[详细]
2023-03-04 20:52 分类:问答Mutable vs immutable object for instance variable in objective C
I have a class with a property sampleNames. It is of type NSSet. The instance variable I plan to use will be NSMutableSet.[详细]
2023-03-01 15:10 分类:问答How are mutable arrays implemented in Haskell?
I\'ve read many research papers on this topic, and they usually argue that arrays are implemented using Monads. But none of these papers gave a clear definition of how the \"type\" Array itself should[详细]
2023-02-28 05:01 分类:问答