-
Can we cache the resulting list size and pre-allocate a list when executing a list comprehension? (And adjust `ob_size` when done with the real size. If there's a somewhat large discrepancy between `…
-
The safety check doesn't reorder expressions around comprehensions before checking nested bodies. As a result, the safety check can generate false positives. Consider:
```rego
x = y.a
y = input.y…
-
I would be interested in seeing a list-comprehension-like syntax for categorical distributions. For instance:
```
Categorical({c -> foo(c) for Card c : bar(c) < limit})
```
would create a distributi…
-
Outgrowth of #1492, but that ticket has already been closed twice and the most important case works great. But as mentioned in its comments it would be useful and more consistent if this also worked:…
-
Hi,
Have you thought about adding constructs similar to Haskell's "do notation" or Scala's "for comprehension" to avoid nesting (something like [Komprehensions](https://github.com/pakoito/Komprehe…
-
When we indent the for comprehension, because of the comma we get one tab indentation
Like this:
```
for x
wende updated
8 years ago
-
#### What problem would the feature you're requesting solve? Please describe.
Scaling decision comprehension for customers - mostly identify which HOST.JSON configuration to tweak per trigger typed w…
-
Hello,
from KairosDB documetation I understood for term "partition" the following:
1. a partition cointains a set of data points of an "arbitrary" number for a time series of a specific metric
2. a p…
-
If a comprehension can't fit on one line, splitting it to multiple lines on comprehension specific things would be good.
```
foo = [
some_func(value)
for value in a_long_named_iterable
if…
-
I think PERF401 is a good rule, however while its message works fine for the "transformed copy" case e.g.
```python
original = list(range(10000))
filtered = []
for i in original:
if i % 2:
…