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 ​​

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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 ​​

Post by answerhappygod »

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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply