general

utils.general.recursiveUpdateLists

Type: utils.general.recursiveUpdateLists :: [ Attr ] -> Attr

Function that merges sets the same as lib.recursiveUpdate. But if a value is a list it merges the list instead of overwriting it. Stolen from here

attrList

: List of sets to merge

utils.general.fillList

Type: utils.general.recursiveUpdateLists :: [ Any ] -> Int -> [ Any ]

Prepends a list with a specific value X amount of times For example say we have [ "my" "fancy" "example" "com" ] And [ "example" "com" ] but want to compare them, then we can use this function like this:

let
  lenSub = (builtins.length [ "my" "fancy" "example" "com" ]);
  lenBase = (builtins.length [ "example" "com" ]);
in
  fillList subDomain (lenBase - lenSub) null

which will result in: [ null null "example" "com" ]

list

: list to prepend

amount

: how often

value

: with what