ipnetwork icon indicating copy to clipboard operation
ipnetwork copied to clipboard

Feature Request - First and Last on IPNetwork

Open LaughingJohn opened this issue 5 years ago • 2 comments

Hi,

Great library. I wanted the actual first and last IP addresses in a range, so it would be helpful if there was a .Last() and .First() method as well as .LastUsable() and .FirstUsable().

I had to use a different library in the end.

Thanks!

LaughingJohn avatar Jun 03 '20 15:06 LaughingJohn

@LaughingJohn Do you have an example of when you'd expect First and Last to produce a different result?

billpg avatar Dec 22 '22 09:12 billpg

Hi @billpg, thanks for coming back to me. Sorry I haven't a specific example - it was a long time ago. My memory is hazy, but I think the basic premise was that if a range included some 'unsusable' addresses, there wasn't a way of getting the actual first/last only first/last usable addresses (which I guess I didn't care about). Sorry hard to be more specific after so long.

LaughingJohn avatar Mar 10 '23 12:03 LaughingJohn