Skip to content

Commit 2260acb

Browse files
committed
small changes
new cell defaults new end-of-list index -1
1 parent dd06d5f commit 2260acb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Demo/Random.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ mkPairs :: [a] -> [(a,a)]
6363
mkPairs (a:b:cs) = (a,b) : mkPairs cs
6464
mkPairs _ = []
6565

66-
endAddressString = "_"
66+
endAddressString = "-1"
6767

6868
mkMem :: Int -> Int -> [Char] -> [Pair] -> (String, MemSt)
6969
mkMem start size rvals pairs =

src/LinkedListDemo.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import Demo.Types
1010
import Demo.Links
1111
import Demo.JS
1212

13-
defaultHeadIndex = 0
14-
defaultNumCells = 10
13+
defaultHeadIndex = 23
14+
defaultNumCells = 14
1515

1616
main = do initializePage (defaultHeadIndex, defaultNumCells)
1717
(draw, rando, gener) <- mkSources

0 commit comments

Comments
 (0)