1 greggirwin 10-Jan-2006 21:34 |
I've had this function for quite a while, and various forms of it
to boot. There are versions that don't use a set-word! syntax, versions
that use an internal function as the replacement code in the block,
and more. This (set-word!) is the syntax I've found I prefer.
The basic idea is simple, anywhere in the block the WORD parameter
appears as a set-word!, the set-word! will be changed to a bit of
code that "collects" the value assigned there. It's proven quite
flexible and easy to use for me, though I was initially concerned
about overriding the meaning of set-words this way. I think the semantic
meaning maps well to its use here, as long as you're aware going
in that it's a dialected function--a very light dialect to be sure,
but a dialect none-the-less.
I'm sure there are other solutions, but I'm very happy not writing:
result: copy []
foreach ...
append result value
result
all over the place any more. I think it also makes the code much
clearer, because it says you're collecting values, and whereever
you see the target word, you know it's being collected.
I'd like to see something like this included in REBOL, but it doesn't
have to be this one. The original collector idea came from Brett
Handley, then Romano Paolo Tenca added his touch to it, and I put
quite a different spin on it after that. |
|
2 sumnerzzupa 24-May-2021 3:53 |
 |
about overriding the meaning of set-words this way.
It's proven quite flexible and easy to use for me, though I was initially concerned
Contents:
Turf Installation
|
 |
MakeDoc2 by REBOL- 24-May-2021
|
|
|
3 baum 12-Aug-2021 23:41 | I'm a Programming Historian writing my blog articles and assignments for university students on https://www.writemyessayfast.ca/about the comprehensive R archive network and its features for dummies. Garrett Grolemund taught me the Data Science with R. And since then I've been spending time only on scripts and custom tasks. |
|
4 marosol 1-Sep-2021 22:52 | |
|
5 mark214 20-Nov-2021 20:33 | |
|
6 claudehuxley 5-Jan-2022 0:42 Edited: claudehuxley 5-Jan-2022 0:45 | |
|
7 joihnnlio 28-Jan-2022 0:36 Edited: joihnnlio 2-Jun-2022 3:54 | Are you up for the task that is given to you by the teachers? In case yes, then we hope that https://www.hardwaretimes.com/5-useful-tips-for-writing-an-essay/this link will be what there are many in need will like for sure. Now you can find more details on the topic in case needed. |
|
8 madelsmith 1-Feb-2022 4:43 | |
|
9 steveb 2-Feb-2022 0:33 | I too agree with these sentiments, thank you so much for sharing!www.ballaratcurtains.com |
|
10 marosol 1-Mar-2022 17:28 | |
|
11 patricia 17-Jun-2022 8:32 | |
|
12 anthonyscott 17-Jun-2022 23:11 | |
|
13 patricia 21-Jun-2022 5:20 | |
|
14 patricia 21-Jun-2022 5:25 | |
|
15 madelsmith 28-Jun-2022 5:56 | |
|
16 chriscole 30-Jun-2022 2:09 | |
|
17 ampva301 30-Jun-2022 21:06 | Thank you for sharing the knowledge, and keep up the good work… I had a great time exploring your website. fantastic asset… https://www.friscoconcretepros.com |
|
18 simona 11-Jul-2022 10:47 | Hi there! Thank you for sharing your knowledge, experiences, helpful resources and links. It may be of use to someone. In turn, I want to tell you about a cool thing for students that I use very often. Once I was very tired of difficult assignments and even thought of quitting my university studies. But then I accidentally found this article https://omnipapers.com/edubirdie-com-review/. Without exaggeration, this assignment help service has made my student life much easier and brought back the desire to study. I no longer need to waste time and effort on complicated papers, because they can be written for me qualitatively. Read more about it in detail. It can really help you a lot. I wish everyone to study with pleasure! |
|
19 johnsjvi95 22-Jul-2022 6:20 |
 |
We live in a time where the idea of hiring a professional landscaper seems to be on the decline.
Contents:
bush trimming
|
 |
MakeDoc2 by REBOL- 22-Jul-2022
|
|
|
20 saruonhosari 17-Aug-2022 0:32 |
 |
Every business needs a dependable fleet of vehicles to transport goods and services. Commercial trucks are used for all sorts of purposes, from transporting food products to delivering mail.
Contents:
Radiator Repair Service minneapolis
|
 |
MakeDoc2 by REBOL- 17-Aug-2022
|
|
|
21 sandy76 21-Aug-2022 17:16 |
 |
If you have thrown your hands up in frustration and had enough of trying to fix the garbage disposal on your own, or fix the door or the floor or the roof on your own, then just know that you aren't alone.
Contents:
Handyman in Cedar City,Utah
|
 |
MakeDoc2 by REBOL- 21-Aug-2022
|
|
|
22 frances1234 22-Aug-2022 21:22 |
 |
The max file I need to archive is in an older version (say, 2018 instead of 2020), but the script only allows me to save in the most recent version bubble shooter. In the next release, would it be possible to choose between different versions?
Contents:
|
 |
MakeDoc2 by REBOL- 22-Aug-2022
|
|
|
23 patricia 14-Nov-2022 6:53 | |
|
24 mandiripinja 5-Dec-2022 7:51 | pinjaman dana jaminan bpkb mobil cepat hanya 1 hari bisa langsung cair dengan suku bunga rendah serta tanpa survey dan bpkb mobil aman untuk seluruh wilayah indonesia. https://www.justgiving.com/fundraising/mandiripinjamandana https://ameblo.jp/mandiripinjamandana/entry-12680765607.html https://ameblo.jp/mandiripinjamandana/entry-12680767540.html https://ameblo.jp/mandiripinjamandana/entry-12680769727.html https://ameblo.jp/mandiripinjamandana/entry-12680770493.html https://ameblo.jp/mandiripinjamandana/entry-12680771364.html https://ameblo.jp/mandiripinjamandana/entry-12680785558.html https://ameblo.jp/mandiripinjamandana/entry-12680786359.html https://ameblo.jp/mandiripinjamandana/entry-12680787122.html https://ameblo.jp/mandiripinjamandana/entry-12680787855.html https://ameblo.jp/mandiripinjamandana/entry-12680788647.html https://ameblo.jp/mandiripinjamandana/entry-12680789550.html https://ameblo.jp/mandiripinjamandana/entry-12680790188.html https://ameblo.jp/mandiripinjamandana/entry-12680790735.html https://ameblo.jp/mandiripinjamandana/entry-12680791419.html https://ameblo.jp/mandiripinjamandana/entry-12680792163.html https://ameblo.jp/mandiripinjamandana/entry-12680792608.html https://ameblo.jp/mandiripinjamandana/entry-12680793459.html https://ameblo.jp/mandiripinjamandana/entry-12680793916.html https://ameblo.jp/mandiripinjamandana/entry-12680794272.html https://ameblo.jp/mandiripinjamandana/entry-12680794619.html https://ameblo.jp/mandiripinjamandana/entry-12680794959.html https://ameblo.jp/mandiripinjamandana/entry-12680795284.html https://ameblo.jp/mandiripinjamandana/entry-12680795637.html |
|
25 crutcherhuyn 20-Dec-2022 22:38 | |
|
26 madelsmith 19-Jan-2023 23:27 | |
|
27 blythewoody 1-Feb-2023 4:12 | |
|
28 ampva301 1-Feb-2023 17:52 |
 |
A thoughtful reply to the subject raised, backed up with valid reasons and thoroughly clarifying the situation.
Contents:
Have a great day from Sugar Land
|
 |
MakeDoc2 by REBOL- 1-Feb-2023
|
|
|
29 connorrr 8-Feb-2023 11:50 | |
|
30 emmausa 14-Feb-2023 0:04 Edited: emmausa 14-Feb-2023 0:05 | Thank you for sharing the useful information with me. This site offers very important documents and opinions and is greatly appreciated. https://tetris-unblocked.co |
|
31 johnsjvi95 13-Mar-2023 7:07 | |
|
32 crutcherhuyn 13-Mar-2023 17:36 | |
|
33 darlenevtayl 21-Mar-2023 3:31 | |
|
34 rickluck90 27-Mar-2023 7:28 | Hi, it's from House Cleaning in Regina . One thing I just want to say is that your info is so perfect! - |
|
35 marie 10-May-2023 7:47 | |
|
36 marosol 10-May-2023 23:25 |
 |
clearer, because it says you're collecting values, and whereever
you see the target word, you know it's being collected.
I think it also makes the code much
Contents:
dog sitting gilbert
|
 |
MakeDoc2 by REBOL- 10-May-2023
|
|
|
37 saruonhosari 26-Jan-2024 23:37 | |
|
38 crutcherhuyn 28-Sep-2024 5:57 | |
|
39 angel17 4-Oct-2024 1:36 | This post is great. Keep us updated! Shop Equinox at City Chevy |
|
40 miyaka22 2-Mar 22:49 |
 |
Our team of skilled and experienced mechanics is equipped to handle a wide range of repair needs, no matter where you are located in the county.
Contents:
Mobile Mechanics
|
 |
MakeDoc2 by REBOL- 2-Mar-2025
|
|
|
41 blythewoody 28-Mar 9:29 |
 |
That sounds like a really elegant way to handle collection in REBOL! Using set-word! as a syntax for collecting values makes a lot of sense—it's concise, expressive, and fits naturally into REBOL's flexible dialecting. It also eliminates a lot of boilerplate append calls, which can make code more readable. tampa yacht charter
Contents:
|
 |
MakeDoc2 by REBOL- 28-Mar-2025
|
|
|