definy.merge-first-common
- description
- The first snapshot of ours (ancestors nearest first) that is also in theirs: the merge base
- type
Fn(ours: List<String>, theirs: List<String>) -> Union{#none, #some(String)}- expression
fn(ours$0, theirs$1) => @core.list-fold( T: String, A: Union{#none, #some(String)}, reducer: fn(acc$2, item$3) => match $2 { #some(_) => $2, #none(_) => match @definy.merge-contains(items: $1, item: $3) { true => #some($3), false => #none } }, init: #none, xs: $0 )
- visibility
- public
definy.merge-first-common (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo) id: IKwV8HzwAStVe5v1FRHWJ3BEsiANdWJ4e9snQu5U_DY content hash: xLjggBQz_tgE3QtIYy7DWuHM5c2HEhF-RQv7WzzmCkA