Comments (2)
Hi 😄
There is already an IQueryable<T>
interface that abstracts all readonly methods from all collection types.
It can be used as return or member type to explicitly force that the content is constant (readonly).
Is that what you need? if not, please give me an example of your proposal
Thanks a lot ;D
from linq-collections.
I splitted IList
and IDictionary
into different interfaces:
IReadOnlyList<T>
, IList<T> (extends readonly list)
IReadOnlyDictionary<K,T>
, IDictionary<K,T> (extends readonly dictionary)
Both IList
and IDictionary
have asReadOnly()
method (simple internal cast)
from linq-collections.
Related Issues (20)
- ToLookup HOT 1
- SequenceEqual
- SkipWhile HOT 2
- Symbol.Iterator and Generators support HOT 3
- Configure webpack + gulp + browser exports
- Zip HOT 1
- DefaultIfEmpty
- Hash and Equality HOT 1
- More overloads using comparers HOT 1
- GroupBy uses inmediate execution instead of deferred HOT 1
- Proper iterator testing
- Add proper deferred execution testing HOT 1
- Fix TsLint HOT 1
- Make List implements IEnumerable HOT 1
- I cloned the source and a error has occur. HOT 5
- warning when building HOT 2
- Is this project still actively maintained or dead? HOT 1
- How to group by multiple keys and select those keys?
- `readonly RowAccessor[]` is not assignable to parameter of type `RowAccessor[]` ?
- Error: No "exports" main defined in ...\node_modules\linq-to-typescript\package.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linq-collections.