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

Implement CCImmutArray.sub, but creates a copy #159

Merged
merged 2 commits into from Nov 20, 2017
Merged

Implement CCImmutArray.sub, but creates a copy #159

merged 2 commits into from Nov 20, 2017

Conversation

ghost
Copy link

@ghost ghost commented Nov 20, 2017

No description provided.

@@ -36,6 +36,11 @@ val get : 'a t -> int -> 'a
val set : 'a t -> int -> 'a -> 'a t
(** Copy the array and modify its copy *)

val sub : 'a t -> int -> int -> 'a t
(** [sub a start len] returns a fresh array of length len, containing the elements number start to start + len - 1 of array a.
Raises [Invalid_argument "Array.sub"] if start and len do not designate a valid subarray of a; that is, if start < 0, or len < 0, or start + len > Array.length a. *)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • the comment has too long lines (80~100 chars max is more readable)
  • please add @since NEXT_RELEASE to the end of the comment :-)

@c-cube c-cube merged commit 170d766 into c-cube:master Nov 20, 2017
@c-cube
Copy link
Owner

c-cube commented Nov 20, 2017

Thanks! :)

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

Successfully merging this pull request may close these issues.

None yet

1 participant