From 65e4b5f4ca80446610821b934e86ba2ad98e9743 Mon Sep 17 00:00:00 2001 From: johnvg Date: Tue, 24 Sep 2002 10:49:13 +0000 Subject: removed second_of_2_tuple in mapSt git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@1206 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d --- frontend/utilities.dcl | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'frontend/utilities.dcl') diff --git a/frontend/utilities.dcl b/frontend/utilities.dcl index 1d3967b..cd822aa 100644 --- a/frontend/utilities.dcl +++ b/frontend/utilities.dcl @@ -41,16 +41,12 @@ mapSt f l s :== map_st l s where map_st [x : xs] s # (x, s) = f x s - mapSt_result = map_st xs s - (xs, _) = mapSt_result - #! s = second_of_2_tuple mapSt_result + (xs, s) = map_st xs s + #! s = s = ([x : xs], s) map_st [] s + #! s = s = ([], s) - -second_of_2_tuple t :== e2 - where - (_,e2) = t map2St f l1 l2 st :== map2_st l1 l2 st where -- cgit v1.2.3