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

Todo List #12

Open
5 of 8 tasks
Nugine opened this issue Feb 5, 2023 · 7 comments
Open
5 of 8 tasks

Todo List #12

Nugine opened this issue Feb 5, 2023 · 7 comments

Comments

@Nugine
Copy link
Owner

Nugine commented Feb 5, 2023

New API:

  • compare!
  • strip_prefix!
  • strip_suffix!
  • lines!
  • join!
  • split_ascii_whitespace!
  • sorted!

Docs:

  • API docs translation

Upstream issues:

@Nugine Nugine pinned this issue Feb 5, 2023
@Scripter17
Copy link

I don't suppose I could bribe you with $20 USD to do join!? It would help a lot in a niche personal project I'm working on

Also I assume the intent is to take an array and/or slice of string literals and a joiner string? I can't imagine it'd be anything else but I just want to be sure

@Nugine
Copy link
Owner Author

Nugine commented Feb 6, 2024

I don't suppose I could bribe you with $20 USD to do join!? It would help a lot in a niche personal project I'm working on

Also I assume the intent is to take an array and/or slice of string literals and a joiner string? I can't imagine it'd be anything else but I just want to be sure

Yes. The intent is to take string slices and concat them using a specified separator. I'll give it a try since someone needs it.

@Scripter17
Copy link

Managed to make it partially work, but not with slices.

macro_rules! join {
    (join=$join:expr, $x:expr) => ($x);
    (join=$join:expr, $x:expr, $($y:expr),+) => {
        concat!($x, $join, join!(join=$join, $($y),+))
    };
}

@Nugine
Copy link
Owner Author

Nugine commented Mar 5, 2024

@Scripter17
Copy link

I currently do not have $20 to give you. I swear I'm not just going back on the promise; Just give me until April.

@Scripter17
Copy link

Finally have the money. Do you have a paypal account?

@Nugine
Copy link
Owner Author

Nugine commented Mar 29, 2024

Finally have the money. Do you have a paypal account?

See https://github.com/Nugine#sponsor. Thank you!

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

2 participants