Skip to content

Commit

Permalink
Minor changes to midsquare (#2397)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaprieto authored Sep 28, 2023
1 parent 27df394 commit 705f2fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/midsquare/MidSquareHash.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ hash' : Nat -> Nat -> Nat

hash : Nat -> Nat := hash' 16;

main : Nat := hash 1367;
-- result: 3
main : Nat -> Nat := hash;
-- result: 3 for 1367
4 changes: 2 additions & 2 deletions examples/midsquare/MidSquareHashUnrolled.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,5 @@ hash16 : Nat -> Nat

hash : Nat -> Nat := hash16;

main : Nat := hash 1367;
-- result: 3
main : Nat -> Nat := hash;
-- result: 3 for 1367
2 changes: 2 additions & 0 deletions examples/midsquare/juvix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: midsquare
version: 0.1.0

0 comments on commit 705f2fa

Please sign in to comment.