Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwarz1 committed Oct 8, 2014
1 parent 0583a08 commit 08fc366
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions assignment3.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ secondpos xs = [x | x <- xs, (head (tail x)) == 2 ]
-}
showall xs = [y | x <- xs, y <-x, y ]

{-
-}
each xs stu = [checkindividual y stu | y <- x,x <-xs]


{-
creates a list of tuples containing an int and a
list of other ints meant to contain the student and
Expand All @@ -42,7 +36,8 @@ each xs stu = [checkindividual y stu | y <- x,x <-xs]
studentstruct ss = [(x,[x]) | x <- ss]

{-
Remakes the studentstruct so that it is recreated
essentially the fix for not being able to pass by reference
-}
fixstruct index student ss = do
let (fh,_:sh) = splitAt (index - 1) ss
Expand Down Expand Up @@ -71,12 +66,12 @@ checkmod x y
-}
groupedTogether xs ys = [ y : ys | y <- xs, (not (elem y ys))]


{-
capture retrieves a list within another list if the element is in the first list
-}
capture xs ys = length [x | x <- xs,(not (elem x ys))]


x = combinations 4 [1..10]

--http://www.reddit.com/r/haskell/comments/1vras3/haskell_io_how_to_read_numbers/


Expand Down

0 comments on commit 08fc366

Please sign in to comment.