definy.merge-push-hash
- description
- Appends hash to list when it is some and not in list yet
- type
Fn(list: List<String>, hash: Union{#none, #some(String)}) -> List<String>- expression
fn(list$0, hash$1) =>
match $1 {
#none(_) =>
$0,
#some(hash$2) =>
match @definy.merge-contains(items: $0, item: $2) {
true =>
$0,
false =>
@core.list-append(list: $0, item: $2)
}
}- visibility
- public
definy.merge-push-hash (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: aNBB28yl1HYuRZ7ioN5zG5BTHPyDZTtSy1wKgz9Onwg
content hash: YZDv4-nzsloczbaoqK1ELjTmJzbx6MEdY3f7R5rI8Kg