Remove from_to_
This commit is contained in:
parent
71a556ce81
commit
6408969cd3
@ -56,8 +56,6 @@ namespace List =
|
|||||||
|
|
||||||
|
|
||||||
function from_to(a : int, b : int) : list(int) = [a..b]
|
function from_to(a : int, b : int) : list(int) = [a..b]
|
||||||
private function from_to_(a, b, acc) =
|
|
||||||
if (a > b) acc else from_to_(a, b - 1, b :: acc)
|
|
||||||
|
|
||||||
function from_to_step(a : int, b : int, s : int) : list(int) = from_to_step_(a, b, s, [])
|
function from_to_step(a : int, b : int, s : int) : list(int) = from_to_step_(a, b, s, [])
|
||||||
private function from_to_step_(a, b, s, acc) =
|
private function from_to_step_(a, b, s, acc) =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user