All pastes #26622 Raw Edit

Anonymous

public text v1 · immutable
#26622 ·published 2005-10-25 16:53 UTC
rendered paste body
halve :: [a] -> ([a],[a])
halve [x] = (b,c)
	where
	  b = take (div (length x) 2) [x]
	  c = take (div (length x) 2) (reverse [x])