COLLATE(2) Icon Program Library COLLATE(2) NNNNAAAAMMMMEEEE collate - collate and decollate strings DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN These procedures collate (interleave) respective characters of two strings and decollate by selecting every other char- acter of a string. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS ccccoooollllllllaaaatttteeee((((ssss1111,,,,ssss2222)))) produce a string consisting of interleaved characters of ssss1111 and ssss2222. For example, ccccoooollllllllaaaatttteeee((((""""aaaabbbbcccc"""",,,,""""ddddeeeeffff"""")))) produces """"aaaaddddbbbbeeeeccccffff"""". ddddeeeeccccoooollllllllaaaatttteeee((((ssss,,,,iiii)))) produce a string consisting of every other character of ssss. If iiii is odd, the odd-numbered characters are selected, while if iiii is even, the even-numbered characters are selected. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS Run-time error 208 occurs if the arguments to ccccoooollllllllaaaatttteeee are not of the same size. AAAAUUUUTTTTHHHHOOOORRRR Ralph E. Griswold Version 5.9 The University of Arizona - 8/12/84 1