-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62e788b
commit 19054e9
Showing
14 changed files
with
71 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
module Main | ||
{ Main.fact : Int -> Int | ||
= \ (n_4 : Int) -> case (Elara.Prim.== @Int n_4 0) { Elara.Prim.True -> 1; Elara.Prim.False -> Elara.Prim.* n_4 (Main.fact (Elara.Prim.- n_4 1))} | ||
= \ (n_5 : Int) -> case (Elara.Prim.== @Int n_5 0) { Elara.Prim.True -> 1; Elara.Prim.False -> Elara.Prim.* n_5 (Main.fact (Elara.Prim.- n_5 1))} | ||
; | ||
Main.main : IO () | ||
= let x_5 : Int | ||
= Main.fact 5 in Elara.Prim.println (Elara.Prim.toString @Int x_5) } | ||
= Elara.Prim.println (Elara.Prim.toString @([] Int) (Prelude.++ (Elara.Prim.cons 1 Elara.Prim.empty) (Elara.Prim.cons 2 Elara.Prim.empty))) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module Prelude | ||
{ Prelude.++ : forall (a_10 : Type). [] a_10 -> [] a_10 -> [] a_10 | ||
= \ (a_11 : [] a_10) (b_12 : [] a_10) -> case a_11 of (a_59 : forall (a_10 : Type). [] a_10) { Elara.Prim.[] -> b_12; Elara.Prim.:: -> Elara.Prim.cons @a_10 x_13 (Prelude.++ xs_14 b_12)} | ||
= \ (a_11 : [] a_10) (b_12 : [] a_10) -> case a_11 of (a_64 : forall (a_10 : Type). [] a_10) { Elara.Prim.empty -> b_12; Elara.Prim.cons -> Elara.Prim.cons @a_10 x_13 (Prelude.++ xs_14 b_12)} | ||
; | ||
Prelude.reverse : forall (a_6 : Type). [] a_6 -> [] a_6 | ||
= \ (x_7 : [] a_6) -> case x_7 of (x_60 : forall (a_6 : Type). [] a_6) { Elara.Prim.[] -> Elara.Prim.[]; Elara.Prim.:: -> Prelude.++ (Prelude.reverse xs_9) (Elara.Prim.:: x_8 Elara.Prim.[])} } | ||
= \ (x_7 : [] a_6) -> case x_7 of (x_65 : forall (a_6 : Type). [] a_6) { Elara.Prim.empty -> Elara.Prim.empty; Elara.Prim.cons -> Prelude.++ (Prelude.reverse xs_9) (Elara.Prim.cons x_8 Elara.Prim.empty)} } |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters