Skip to content

Commit

Permalink
indentation formated
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcb committed Aug 7, 2024
1 parent ae0b540 commit 432a983
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 432a983

Please sign in to comment.