In-Depth Coverage of the Icon Programming Language
ثبت نشده
چکیده
The repeated alternation control structure causes its argument co-expression to be repeatedly activated until it has no more results. It's worth remembering that |@C generates all the results that the expression for C generates. This procedure can be generalized to take an arbitrary number of arguments: procedure Galt(args) local C every C := !args do suspend |@C end For example, the result sequence for Galt{1 to 3, !"abc", 4 to 5} is {1, 2, 3, "a", "b", "c", 4, 5}. It's tempting to go one step further, replacing every C := !args do suspend |@C by suspend |@!args
منابع مشابه
In-Depth Coverage of the Icon Programming Language Shaft Arithmetic
Shaft Arithmetic ............................................ 1 Periodic Sequences ....................................... 5 Finding Repeats ............................................ 7 Name Drafting ............................................ 11 Variations on Versum Sequences ............. 15 Answers to Last Quiz ................................. 18 From the Library ...........................
متن کاملIn-Depth Coverage of the Icon Programming Language
Weave Draft Representation ....................... 1 From the Library ........................................... 3 Graphics Corner ............................................ 4 Exploring Sequences Interactively ............. 7 Answers to Quiz ........................................... 9 Woven Images ............................................. 10 Shadow-Weave Wallpaper ........................
متن کاملAnalyzing Character Patterns
About This Issue ................................ 1 Analyzing Character Patterns .......... 1 Versum Deltas .................................... 7 Graphics Corner ............................... 10 Tricky Business ................................ 14 From the Library .............................. 19 What’s Coming Up ..........................20 In-Depth Coverage of the Icon Programming Language...
متن کاملIn-Depth Coverage of the Icon Programming Language
10. Avoid long lines. Instead, continue expressions on as many lines as are needed for easy readability. See the first two issues of The Icon Analyst for the proper techniques for breaking lines. Similarly, continue long string and cset literals on several lines if that’s necessary to make them readable. See Appendix A of the second edition of The Icon Programming Language for the method of con...
متن کامل