Include the last number in the range
This commit is contained in:
parent
30b88e6eea
commit
9e1e23bfc6
|
@ -13,7 +13,7 @@ let
|
|||
assert base < top;
|
||||
let
|
||||
rangeFun = base: top:
|
||||
if base == top then [ ] else [ base ] ++ (rangeFun (base + 1) top);
|
||||
if base == top then [ base ] else [ base ] ++ (rangeFun (base + 1) top);
|
||||
in rangeFun base top;
|
||||
|
||||
getNetworkHosts = network: filterAttrs (ip: _: ipv4OnNetwork ip network);
|
||||
|
|
Loading…
Reference in New Issue