Haskell Given the following list: l = [5,3,8,23,-6,2,13,7,4] create a new list lnew, which only contains the values
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Haskell Given the following list: l = [5,3,8,23,-6,2,13,7,4] create a new list lnew, which only contains the values
Haskell Given the following list: l = [5,3,8,23,-6,2,13,7,4] create a new list lnew, which only contains the values of l, which are greater than the mean of l. (mean= (list value and index i / list length)print lnew! Dont use any other higher-order functions for this, apart from filters.