Skip to content

Commit

Permalink
Merge pull request #52 from nmcb/unchecked
Browse files Browse the repository at this point in the history
indentation formated
  • Loading branch information
nmcb authored Aug 7, 2024
2 parents ae0b540 + 432a983 commit 4633030
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/scala/splatter/stutter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,9 @@ def eval(e: Expr): Expr =
case (_, a: Atom) => sys.error(s"not a list: $a")
case CondLit(args) =>
args
.find: l =>
l match
case Lisp(Seq(p, e)) => eval(p) == Expr.t
case e: Expr => sys.error(s"not a conditional $e")
.find:
case Lisp(Seq(p, e)) => eval(p) == Expr.t
case e: Expr => sys.error(s"not a conditional $e")
.getOrElse(sys.error("undefined"))
match
case Lisp(Seq(_, expr)) => eval(expr)
Expand Down

0 comments on commit 4633030

Please sign in to comment.