Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Implement Enumerable.Repeat #1053

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Implement Enumerable.Repeat #1053

wants to merge 1 commit into from

Conversation

mwh
Copy link
Contributor

@mwh mwh commented Feb 28, 2018

The external method Repeat(TResult,int) was not implemented.
This commit introduces a test case and matching implementation returning
a JSIL AbstractEnumerable returning the element the appropriate number
of times.

function Repeat$b1(TResult, element, count) {
var i = 0;

var moveNext = System.Collections.IEnumerator.MoveNext;
Copy link
Member

Choose a reason for hiding this comment

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

This is unnecessary

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I've taken them both out.

The external method Repeat<TResult>(TResult,int) was not implemented.
This commit introduces a test case and matching implementation returning
a JSIL AbstractEnumerable returning the element the appropriate number
of times.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants