4d: Parsing (Tracing)
+last
+lastFurther trace.
Compares two line-column pairs, .zyc and .naz, producing whichever is further along.
Accepts
.zyc is a $hair.
.naz is a $hair.
Produces
A $hair.
Source
++ last |= [zyc=hair naz=hair]
^- hair
?: =(p.zyc p.naz)
?:((gth q.zyc q.naz) zyc naz)
?:((gth p.zyc p.naz) zyc naz)Examples
> (last [1 1] [1 2])
[p=1 q=2]+lust
+lustDetect newline.
Advances .naz by a row if the .weq is a newline, or by a column if .weq is any other character.
Accepts
.weq is a +char.
.naz is a $hair.
Produces
A $hair.
Source
Examples
Last updated