Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  High order function beggining doubt (Igor Pinheiro Le?o)
   2. Re:  High order function beggining doubt (Igor Pinheiro Le?o)
   3. Re:  High order function beggining doubt (David Flicker)
   4. Re:  High order function beggining doubt (Emanuel Koczwara)
   5. Re:  High order function beggining doubt (Igor Pinheiro Le?o)


----------------------------------------------------------------------

Message: 1
Date: Wed, 3 Jul 2013 20:40:20 -0300
From: Igor Pinheiro Le?o <[email protected]>
Subject: [Haskell-beginners] High order function beggining doubt
To: [email protected]
Message-ID:
        <cagrj+gcvfngamnrjcdlm7esxu+m1jr0mdsbecx2vjbmyeyh...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi there,
let a function whith the following signature:
annexer :: (b -> c) -> [a -> b] -> [a -> c]
How can i do that?

Kind regards,
Igor

-- 
Igor Vin?cius
Graduando em Ci?ncia da Computa??o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130703/7a7b1ed5/attachment-0001.htm>

------------------------------

Message: 2
Date: Wed, 3 Jul 2013 20:42:30 -0300
From: Igor Pinheiro Le?o <[email protected]>
Subject: Re: [Haskell-beginners] High order function beggining doubt
To: [email protected]
Message-ID:
        <cagrj+gfp0gz6fh01+eb19fajjbpsghsw_kzpp8jffew-qkv...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Oops, my bad.
*with.


2013/7/3 Igor Pinheiro Le?o <[email protected]>

> Hi there,
> let a function whith the following signature:
> annexer :: (b -> c) -> [a -> b] -> [a -> c]
> How can i do that?
>
> Kind regards,
> Igor
>
> --
> Igor Vin?cius
> Graduando em Ci?ncia da Computa??o
>



-- 
Igor Vin?cius
Graduando em Ci?ncia da Computa??o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130703/0b6488de/attachment-0001.htm>

------------------------------

Message: 3
Date: Wed, 3 Jul 2013 19:46:28 -0400
From: David Flicker <[email protected]>
Subject: Re: [Haskell-beginners] High order function beggining doubt
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Message-ID:
        <cabtopc1jx-hpmbj+9dambsdfejn4hb47hmpwz151fbmoodt...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hey Igor,

Try using a map and then the function composition operator ".".
Something like

annexer func list = map (\x -> (func . x)) list

Kind regards,

David


On Wed, Jul 3, 2013 at 7:42 PM, Igor Pinheiro Le?o <[email protected]>wrote:

> Oops, my bad.
> *with.
>
>
> 2013/7/3 Igor Pinheiro Le?o <[email protected]>
>
>> Hi there,
>> let a function whith the following signature:
>> annexer :: (b -> c) -> [a -> b] -> [a -> c]
>> How can i do that?
>>
>> Kind regards,
>> Igor
>>
>> --
>> Igor Vin?cius
>> Graduando em Ci?ncia da Computa??o
>>
>
>
>
> --
> Igor Vin?cius
> Graduando em Ci?ncia da Computa??o
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130703/0678bc68/attachment-0001.htm>

------------------------------

Message: 4
Date: Thu, 04 Jul 2013 01:47:14 +0200
From: Emanuel Koczwara <[email protected]>
Subject: Re: [Haskell-beginners] High order function beggining doubt
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Message-ID: <1372895234.29656.17.camel@emanuel-laptop>
Content-Type: text/plain; charset="us-ascii"

Hi,

Try this:

annexer a b = map (a.) b

Best regards,
Emanuel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5185 bytes
Desc: not available
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130704/3dee501d/attachment-0001.bin>

------------------------------

Message: 5
Date: Wed, 3 Jul 2013 20:59:29 -0300
From: Igor Pinheiro Le?o <[email protected]>
Subject: Re: [Haskell-beginners] High order function beggining doubt
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Message-ID:
        <CAGrJ+gd0xP03i1B=tpya5ho8u87ib6hun-o1rykzywq0qks...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Thank you Emanuel and David!
It worked. Now I have to google in order to better understand function
composition.

Best,
Igor


2013/7/3 David Flicker <[email protected]>

> Hey Igor,
>
> Try using a map and then the function composition operator ".".
> Something like
>
> annexer func list = map (\x -> (func . x)) list
>
> Kind regards,
>
> David
>
>
> On Wed, Jul 3, 2013 at 7:42 PM, Igor Pinheiro Le?o <[email protected]>wrote:
>
>> Oops, my bad.
>> *with.
>>
>>
>> 2013/7/3 Igor Pinheiro Le?o <[email protected]>
>>
>>> Hi there,
>>> let a function whith the following signature:
>>> annexer :: (b -> c) -> [a -> b] -> [a -> c]
>>> How can i do that?
>>>
>>> Kind regards,
>>> Igor
>>>
>>> --
>>> Igor Vin?cius
>>> Graduando em Ci?ncia da Computa??o
>>>
>>
>>
>>
>> --
>> Igor Vin?cius
>> Graduando em Ci?ncia da Computa??o
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>


-- 
Igor Vin?cius
Graduando em Ci?ncia da Computa??o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130703/eb2a28aa/attachment.htm>

------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 61, Issue 6
****************************************

Reply via email to