-
This program works in `dart --checked`:
``` dart
import 'dart:collection';
foo(LinkedHashMap map) {
print(map);
}
bar(Map map) {
print(map);
}
main() {
foo({'hi': 'foo'});
bar({'hi': 'bar'}…
-
``` javascript
var count = 0
Immutable.fromJS({a: {b: [10, 20, 30]}, c: 40}, function (key, value) {
var isIndexed = Immutable.Iterable.isIndexed(value)
var result = isIndexed ? value.toList() :…
-
Why does `values()` return `Iterator` instead of `Seq`? I can't do anything with an `Iterator`. Effectively this means there isn't a straight forward way to get a `Seq` of only a map's values, because…
-
ImmutableJS has a ton of different data structures which I find pretty useful (Set, OrderedMap, etc). Each data structure has its own special methods.
Does the current Cerebral API support custom sta…
-
I'm a bit confused about Record objects. Consider this:
``` javascript
var Car = Immutable.Record({});
var Honda = new Car({test: 1});
console.log(Honda.get('test'))
// => null
console.log(Honda.to…
-
Hi, I'm trying to perform `remove()` and `sort()` inside a `withMutations()`. Now the documentation says that only `set()` and `merge()` can be used with a mutable collection. However, [this post](htt…
umphy updated
9 years ago
-
The installation on Max OS X required sudo permissions as well. Is it odd or just normal?
```
Warning: Directory 'doc' not found
Updating manifest for /usr/local/lib/luarocks/rocks
penlight 1.1.0-3 …
-
Although the state is mostly immutable in SearchParameters, the inner structures based on array and objects are not due to their nature of native objects. It would be nice to use a library like Immuta…
-
Similar to Data.Map.Lazy.split:
split :: Ord k => k -> Map k a -> (Map k a, Map k a)
O(log n). The expression (split k map) is a pair (map1,map2) where the keys in map1 are smaller than k and the ke…
-
Hey,
it seems that the ordering of routes is only preserved if there are less than or equal to 10 routes. Above that, the ordering will switch to random. I've played around with this with my current s…