forked from Orchid/orchid
Backup commit before crunch
This commit is contained in:
2
src/external/str/char_at.rs
vendored
2
src/external/str/char_at.rs
vendored
@@ -33,7 +33,7 @@ externfn_impl!(CharAt1, |this: &Self, x: ExprInst| {
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct CharAt0 { s: String, x: ExprInst }
|
||||
atomic_redirect!(CharAt0, x);
|
||||
atomic_impl!(CharAt0, |Self{ s, x }: &Self| {
|
||||
atomic_impl!(CharAt0, |Self{ s, x }: &Self, _| {
|
||||
with_uint(x, |i| if let Some(c) = s.chars().nth(i as usize) {
|
||||
Ok(Clause::P(Primitive::Literal(Literal::Char(c))))
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user