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

What is take? #26

Closed
EricForgy opened this issue Feb 12, 2019 · 0 comments
Closed

What is take? #26

EricForgy opened this issue Feb 12, 2019 · 0 comments

Comments

@EricForgy
Copy link
Contributor

I'm studying this package and have a few questions. Sorry for polluting the issues 😅

Looking at this: https://github.com/Keno/AbstractTrees.jl/blob/master/src/AbstractTrees.jl#L181-L189

function zip_min(c1, c2)
    n1, n2 = length(c1), length(c2)
    if n1 < n2
        c2 = take(c2,n1)
    elseif n2 < n1
        c1 = take(c1,n2)
    end
    zip(c1, c2)
end

I can't find take defined anywhere 🤔

What am I missing?

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