cord-2both ( cord-a cord-b quot combine fallback -- result )


Vocabulary
sequences.cords

Inputs
cord-aan object
cord-ban object
quotan object
combinean object
fallbackan object


Outputs
resultan object


Definition


:: cord-2both
( cord-a cord-b quot combine fallback -- result )
cord-a cord-b 2dup [ cord? ] both? [
[ [ head>> ] bi@ quot call ]
[ [ tail>> ] bi@ quot call ] 2bi combine call
] [ fallback call ] if ; inline