Compare commits

..

No commits in common. "4d1122fa58c578f3a7819ea892b324efb9a67aa3" and "492c954655c426fcc7ed0a88f696a962874bb6dc" have entirely different histories.

2 changed files with 13 additions and 7 deletions

View File

@ -663,7 +663,7 @@ fn at {
when { when {
nil? (raw) -> nil nil? (raw) -> nil
gte? (raw, 128) -> panic! "not an ASCII char" gte? (raw, 128) -> panic! "not an ASCII char"
true -> base :str_slice (str, n, inc (n)) true -> raw
} }
} }
(_) -> nil (_) -> nil

View File

@ -55,19 +55,25 @@
# (do # (do
(def start (os/clock)) (def start (os/clock))
(def source ` (def source `
at ("aéc", 3) repeat 100 {
repeat 100 {
fd! (1)
rt! (inv (100))
}
rt! (inv (100))
}
`) `)
(def out (-> source (def out (-> source
ludus ludus
j/decode # j/decode
)) ))
(def end (os/clock)) (def end (os/clock))
(setdyn :out stdout) (setdyn :out stdout)
(pp out) (pp out)
(def console (out "console")) # (def console (out "console"))
(print console) # (print console)
(def result (out "result")) # (def result (out "result"))
(print result) # (print result)
(print (- end start)) (print (- end start))
) )