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

Add Support for Vec<String> #56

Closed
canewsin opened this issue Dec 17, 2021 · 4 comments
Closed

Add Support for Vec<String> #56

canewsin opened this issue Dec 17, 2021 · 4 comments

Comments

@canewsin
Copy link

Currently Vec is only Supported for Vec Types if I was not wrong.

@dvc94ch
Copy link
Contributor

dvc94ch commented Dec 17, 2021

You can use an Iterator instead

@dvc94ch
Copy link
Contributor

dvc94ch commented Dec 17, 2021

So to get a Vec<String> you can do the following:

fn strings() -> Iterator<String>;
pub fn strings() -> Vec<String> {
    vec!["hello".into(), "world".into()]
}
final List<String> strings = api.load().strings().toList();

@canewsin
Copy link
Author

Yeah, Already Figured that.

@dvc94ch
Copy link
Contributor

dvc94ch commented Dec 17, 2021

So closing in favor of #44

@dvc94ch dvc94ch closed this as completed Dec 17, 2021
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