#134_limit-dns #135
1 changed files with 2 additions and 2 deletions
|
@ -61,11 +61,11 @@
|
||||||
if x < y
|
if x < y
|
||||||
then y
|
then y
|
||||||
else x;
|
else x;
|
||||||
|
|
||||||
# get teh max length of a list of strings
|
# get teh max length of a list of strings
|
||||||
max_len = records: lib.lists.foldr (a: b: (max a b)) 0 (lib.lists.forEach records (record: lib.strings.stringLength record.record));
|
max_len = records: lib.lists.foldr (a: b: (max a b)) 0 (lib.lists.forEach records (record: lib.strings.stringLength record.record));
|
||||||
|
|
||||||
# now that we can get teh max lenth of a list of strings
|
# Now that we can get teh max lenth of a list of strings
|
||||||
# we can pad it out to the max len +1
|
# we can pad it out to the max len +1
|
||||||
# this is so that teh generated file is easier for a human to read
|
# this is so that teh generated file is easier for a human to read
|
||||||
format_records = records: let
|
format_records = records: let
|
||||||
|
|
Loading…
Reference in a new issue