Haskell list comprehension with tuple input -


Is it possible to use a tuple as input to understand a list anyhow? Or maybe understanding a tuple? I expected to do the following work, but it is not.

  [x * 2 | X & LT; - (4, 16, 32)]   

I can not use lists since the beginning because the signature given to my homework function

  Success: : (Int, Int, Int) - & gt; Int - & gt; (Int, Int, Int) - & gt; But it would be so easy to work with lists because in one part of the work I would have to count how many  1  s and  20  Are in Tuples   

control. Support for homogeneous toplex of all lengths overorded by the lens

  import control. Lenses - Change in list: (3, 4, 5) ^ .. each - [3, 4, 5] (1, 2) ^ .. each - [1, 2] - Modify elements: (4, 16, 32) & amp; Every% ~ \ x - & gt; x * 2 - (8, 32, 64) (1, 2) & amp; Each% ~ (+1) - (2, 3) - Operator notation for general modifications (see Lens. Operators): (1, 2, 3) & amp; Each + 2 - (3, 4, 5) (1, 2, 3) & amp; Each (2, 4, 6) - (2, 4, 6) - Monadic traversal (Each list here (each x (x -> [x, x + 1]) (1, 2) - [(1,2) , (1,3), (2, 2), (2,3)] - `Each 'is basically a traversal for an overloaded" kitchen sink "- the common container works on these lists, vectors or maps, For example [(3, 4), (5, 6)] & each. + 1 - - [(4, 5), (6, 7)]    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -