Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwoodbury committed Oct 7, 2014
2 parents fffb1fa + c5070e4 commit 1104da4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mattsjunk.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,16 @@ fixstruct index student ss = do
and the second element is the list of already grouped students
-}
addstudent :: a -> (t, [a]) -> (t, [a])
addstudent s curstu = head [ (y, s:g x) | let x = snd curstu , let y = fst curstu]
addstudent s curstu = head [ (y, s: x) | let x = snd curstu , let y = fst curstu]

outputlist :: Int -> [[Int]]
outputlist numgroup = map (drop 1) (map (:[]) [1..(numgroup)])

--checkoutputlist (ss) curstu ol=
-- if (not . (elem curstu ol))
-- then if
-- map curstu currentstudent `checkindividual`
-- then


{-
Expand Down

0 comments on commit 1104da4

Please sign in to comment.