Skip to content

Commit 4cc6241

Browse files
committed
Added stride(from: through: by:) (except the double variant, on Toffee)
1 parent 2ff932a commit 4cc6241

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/Functions.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ public func stride(from start: Double, to end: Double, by stride: Double) -> ISe
195195
}
196196
}
197197

198+
#if !TOFFEE
198199
//75284: Silver: can't overload global func on parameter names?
199200
public func stride(from start: Double, through end: Double, by stride: Double) -> ISequence<Double> {
200201
precondition(stride > 0, "'by' must be larger than zero")
@@ -204,6 +205,7 @@ public func stride(from start: Double, through end: Double, by stride: Double) -
204205
i += stride
205206
}
206207
}
208+
#endif
207209

208210
#if TOFFEE
209211

0 commit comments

Comments
 (0)