Skip to content

Conversation

@kborucinski
Copy link
Contributor

Add sliding window method which returns a new list, composed of n-tuples of consecutive elements.

"content": "slidingWindow(1)([1, 2, 3, 4, 5, 6]); // ⇒ [[1], [2], [3], [4], [5], [6]]"
}
],
"questions": ["TODO: List questions that may this function answers."]

Choose a reason for hiding this comment

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

answers => answer

import slidingWindow from "./slidingWindow.ts";

describe("slidingWindow", () => {
it("should returns list, composed of 2-tuples of consecutive elements", () => {

Choose a reason for hiding this comment

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

returns => return

@przemyslawzalewski przemyslawzalewski merged commit 09b68ee into master Jan 9, 2020
@przemyslawzalewski przemyslawzalewski deleted the add_sliding_window_method branch January 9, 2020 14:37
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.

5 participants