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

Count of entries? #12

Open
hopewise opened this issue May 2, 2017 · 6 comments
Open

Count of entries? #12

hopewise opened this issue May 2, 2017 · 6 comments

Comments

@hopewise
Copy link

hopewise commented May 2, 2017

Is there a way to get the count of entries in the file?

@josevalim
Copy link
Member

@hopewise you can use the stream function and then perform Enum.count/1. Even though we need to traverse the file to find out the number of entries, we could optimize the code to avoid building binaries. This optimization is not present today.

@leandrocp
Copy link

Hey @josevalim is this issue still open as a reminder?

@josevalim
Copy link
Member

In a way yes, but it is a bit complicated to implement because you cannot simply look at newlines, as the newlines may be part of a column, but it should be doable. :)

@hopewise
Copy link
Author

Thanks @josevalim for the hint.

@kelvinst
Copy link

Hey @hopewise I guess @josevalim said the issue should be left open so we remember to do something about it in the future. I can take a shot at this if you want.

@hopewise
Copy link
Author

ops, thanks @kelvinst for your note

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

4 participants