Comments (4)
Well, sure, but you need inversion of control (like algebraic effects or delimcc) to write such a function, and it's terribly slow.
It's one of those function that, when you need it, you probably should figure out a way not to. :)
from iter.
of_seq
is easy, it's to_seq
that'd be hard.
from iter.
Oh, I misread! Yes, of_seq
is easy and pretty useful, I suppose. Although in most cases it's better to cut off the middlemen.
from iter.
hm. in the current context i was using gen
and Iter.of_gen
before and was moving from gen
to Stdlib.Seq
. i then noticed that there is no equivalent of_seq
. in the meantime i figured out how to do it with OSeq.iter
. i did not really think about efficiency at all at the moment. am i doing it wrong^TM ?
from iter.
Related Issues (20)
- opam config needs qtest dependency? HOT 5
- opam install --build-doc sequence wants to write to /usr/local/share/doc/sequence HOT 3
- Sequence.(--^) inconsistent with CCList.(--^) HOT 1
- Is it the normal behavior for group_by? HOT 3
- Missing test dependency HOT 2
- should this be included into batteries? HOT 1
- zipping two sequences? HOT 1
- 4.07 support HOT 4
- document pros/cons of seq/sequence/gen HOT 6
- investigate `mdx` for testing the readme HOT 1
- make doc fails HOT 2
- Can't run tests with OUnit2 and qcheck-0.13 HOT 1
- Broken link in README
- The Synopsis line is empty (with $ opam list) HOT 5
- Compatibility with mdx 2.0.0 HOT 2
- split into several modules
- dune version HOT 1
- Iter.IO.write_lines with "empty" iter still writes a newline char to output file HOT 3
- use qtest for testing
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 iter.