Skip to content

Conversation

pao
Copy link
Member

@pao pao commented Mar 16, 2012

I may not have selected the best types for these functions. If there's a more general iterable supertype we should probably use that instead.

@pao
Copy link
Member Author

pao commented Mar 16, 2012

Yes, these are definitely inspired by Haskell and Python equivalents, respectively. Notably, Python isn't lazy, so these are implemented as generators, but using Tasks didn't occur to me when I wrote these. I ended up defining these then decided I didn't want to use them, but I figured it's the sort of thing people are going to want to reimplement all the time if they aren't in the standard library somewhere.

Perhaps we should go back and lazy these up with Tasks, then?

@pao
Copy link
Member Author

pao commented Mar 16, 2012

Looks like you already did enumerate(). Let's close this then.

@pao pao closed this Mar 16, 2012
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Oct 11, 2021
Co-authored-by: Dhairya Gandhi <[email protected]>
ViralBShah added a commit that referenced this pull request Feb 11, 2025
Stdlib: SparseArrays
URL: https://github.com/JuliaSparse/SparseArrays.jl.git
Stdlib branch: main
Julia branch: master
Old commit: 212981b
New commit: 72c7cac
Julia version: 1.13.0-DEV
SparseArrays version: 1.12.0(Does not match)
Bump invoked by: @ViralBShah
Powered by:
[BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl)

Diff:
JuliaSparse/SparseArrays.jl@212981b...72c7cac

```
$ git log --oneline 212981b..72c7cac
72c7cac Explicitly declare type constructor imports (#598)
ff083ce README: update github action badge (#596)
```

Co-authored-by: ViralBShah <[email protected]>
KristofferC pushed a commit that referenced this pull request Feb 11, 2025
Stdlib: SparseArrays
URL: https://github.com/JuliaSparse/SparseArrays.jl.git
Stdlib branch: main
Julia branch: master
Old commit: 212981b
New commit: 72c7cac
Julia version: 1.13.0-DEV
SparseArrays version: 1.12.0(Does not match)
Bump invoked by: @ViralBShah
Powered by:
[BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl)

Diff:
JuliaSparse/SparseArrays.jl@212981b...72c7cac

```
$ git log --oneline 212981b..72c7cac
72c7cac Explicitly declare type constructor imports (#598)
ff083ce README: update github action badge (#596)
```

Co-authored-by: ViralBShah <[email protected]>
(cherry picked from commit ac79b9f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants