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

BatString.cut #807

Closed
UnixJunkie opened this issue Nov 14, 2017 · 4 comments
Closed

BatString.cut #807

UnixJunkie opened this issue Nov 14, 2017 · 4 comments
Assignees

Comments

@UnixJunkie
Copy link
Member

Like the cut unix command:

val cut : char -> int -> string -> string = <fun>
cut ',' 2 "a,b,c";;
string = "c"
@thizanne thizanne self-assigned this Mar 2, 2018
@UnixJunkie
Copy link
Member Author

onegai shimasu

@UnixJunkie
Copy link
Member Author

the cut command has indexes starting at 1 I think.
However, I don't think we have to follow this convention.

@thizanne
Copy link
Member

thizanne commented Mar 6, 2018

Starting at 0 is coherent with virtually every other OCaml indexing convention. Screw unix.

@UnixJunkie
Copy link
Member Author

done by #856
thanks to @thizanne and @FkHina

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants