at
works with strings
This commit is contained in:
parent
492c954655
commit
faf15bfd75
|
@ -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 -> raw
|
true -> base :str_slice (str, n, inc (n))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(_) -> nil
|
(_) -> nil
|
||||||
|
|
Loading…
Reference in New Issue
Block a user