forked from Orchid/orchid
Pattern matching works now
This commit is contained in:
@@ -50,7 +50,9 @@ fn process_args<I, O, F: ExprFunc<I, O>>(f: F) -> FunRecord {
|
||||
exec(async move |mut hand| {
|
||||
let mut norm_args = Vec::with_capacity(v.len());
|
||||
for (expr, typ) in v.into_iter().zip(argtyps) {
|
||||
if *typ != TypeId::of::<Expr>() {
|
||||
if *typ == TypeId::of::<Expr>() {
|
||||
norm_args.push(expr);
|
||||
} else {
|
||||
norm_args.push(hand.exec(expr).await?);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user