Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace and replace! #526

Closed
ExpandingMan opened this issue Apr 4, 2018 · 3 comments
Closed

replace and replace! #526

ExpandingMan opened this issue Apr 4, 2018 · 3 comments

Comments

@ExpandingMan
Copy link

This is a reminder to add these very useful functions. I haven't looked around the 0.6 Base enough to know off the top of my head what these should be replaced with in 0.6, pun intended.

I can do this, but I won't get around to it until the weekend at the earliest.

@stevengj
Copy link
Member

stevengj commented Apr 4, 2018

Note that 0.6 already has replace. And we already added Compat for an API change in #445. Could you be more specific about what methods are missing?

@ExpandingMan
Copy link
Author

Sorry, so basically the string methods exist in 0.6, but all the more general container methods are missing.

So, at least the following:

# 12 methods for generic function "replace":
[1] replace(a::Union{Function, Type}, b::Pair; count) in Base at set.jl:486
[2] replace(a::Union{Function, Type}, b::Pair, c::Pair; count) in Base at set.jl:487
[8] replace(A, old_new::Pair...; count) in Base at set.jl:426

and all methods of replace!.

@martinholters
Copy link
Member

Closing as outdated since we've dropped support for Julia prior to 1.0.

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

No branches or pull requests

3 participants