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

How to use next() from find() #67

Open
jihuun opened this issue Apr 25, 2021 · 1 comment
Open

How to use next() from find() #67

jihuun opened this issue Apr 25, 2021 · 1 comment

Comments

@jihuun
Copy link

jihuun commented Apr 25, 2021

Hi,

What is next() doing? in the below code? And is there documentation or something about how to use the next()? Thanks!

    for node in document.find(Class("question-summary")).take(5) {
        let question = node.find(Class("question-hyperlink")).next().unwrap();
@ghost
Copy link

ghost commented Sep 8, 2021

It's a regular iterator Find.

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

1 participant