-
And should the function be marked as effectful (eg: `*fn () {}`)?
Any function that throws would need the asterisk, IMO.
**edit:** And maybe use `co` instead of `*fn`?
-
## Example
```javascript
const [rushed, rest] = rush(4, range())
```
**Expect:**
* `rushed` should be an array of 4 numbers: `[0, 1, 2, 3]`
* `rest` should be an iterator starting from 4
-
Please include the information below in your report, along with
any other information that may help us track it down. Thanks!
dartdevc arguments: --dart-sdk=/usr/local/Cellar/dart/2.0.0/libexec …
-
Promised attribute are no rendered properly.
Using this code:
```javascript
import { render, html } from "./lit-html.js";
const Main = () => {
const postTitle = new Promise( (resolve, rejec…
-
I want to create a stream from a simple list, let's say `[1, 2, 3]`. How do I do that? What I managed to do is:
```python
@operator
async def out():
for x in [1,2,3]:
yield x
a…
-
I can't load any ramses outputs anymore that don't contain any particles at all. I traced this back to line 400 in ramses.py where the dict is initialized when loading the particles. The problem is th…
-
There's a bit of annoying impedance mismatch between working with subscriptions in GraphQL.js and working with subscriptions in Relay.
While GraphQL.js internally uses async iterables for subscript…
taion updated
6 years ago
-
-
I'm trying to use `repeat` in the following manner:
```
html`
${repeat( this.getAccounts(), (account) => html`
${account.name}
`)}
`;
```
The `getAccounts` method has the form:
…
-
## Usage
```javascript
const iterator = range(4)
const iterable = everlasting(iterator)
Array.from(iterable) // [0, 1, 2, 3]
Array.from(iterable) // [0, 1, 2, 3]
Array.from(iterator) // []
Ar…