cscherrer / NestedTuples.jl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Double definition of `lazymerge`

theogf opened this issue · comments

function lazymerge(x, y)

is repeated at

lazymerge(a, b) = b

Thanks @theogf . I think we can change the first one to function lazymerge end, and just use it for the docs reference. Then lazymrege will not always create a LazyMerge. For example,

lazymerge(nt, NamedTuple()) == nt

Sometimes we want to be sure to create a LazyMerge (for dispatch, to avoid type piracy for NamedTuples). In those cases we can call LazyMerge directly.