cord-2map ( cord-a cord-b quot fallback -- cord' )


Vocabulary
sequences.cords

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


Outputs
cord'an object


Definition


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