Skip to content

Instantly share code, notes, and snippets.

@dminuoso

dminuoso/f.hs Secret

Created January 18, 2021 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dminuoso/4a9e531ea9e0953dc612bf3f691a4d6a to your computer and use it in GitHub Desktop.
Save dminuoso/4a9e531ea9e0953dc612bf3f691a4d6a to your computer and use it in GitHub Desktop.
split4 :: IPv4Range -> Maybe (IPv4Range, IPv4Range)
split4 = split4Bound 32
split6 :: IPv6Range -> Maybe (IPv6Range, IPv6Range)
split6 = split6Bound 128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment