New to Red language? Ask any question about it here, move to red/help room for deeper help with your Red code.
incompatible values
or
and and
?
1 or 2 -> 3
01 or 10 -> 11
... into [rules]
. You've built something like ... into [one rule] [another rule] third rule
and the third rule is not in a block.[keep pick to end]
. I read something about pick
in parse
context, but could never arrive at such formulation by myself based solely on that.pick
, see here. It basically collects matched values one-by-one instead of collecting matched group as a "unity".
input: [
"[1518-02-24 23:58] Guard #853 begins shift"
"[1518-02-25 00:20] falls asleep"
"[1518-02-25 00:43] wakes up"
]
forall input [
probe parse load input/1 [
collect [
into [keep pick to ":" to end ] ; inserting `to ":"`
[thru set ID keep issue! | keep (ID)]
set action skip keep (index? find actions action)
]
]
]
== []