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. Re:  Some guidance (Michael Peternell)
   2.  Filter to a list of function (Igor Pinheiro Le?o)
   3. Re:  Filter to a list of function (Igor Pinheiro Le?o)
   4. Re:  Filter to a list of function (Benjamin Edwards)
   5. Re:  Filter to a list of function (Brent Yorgey)
   6. Re:  Filter to a list of function (Igor Pinheiro Le?o)


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

Message: 1
Date: Sun, 7 Jul 2013 18:01:19 +0200
From: Michael Peternell <[email protected]>
Subject: Re: [Haskell-beginners] Some guidance
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

How did you come to this conclusion?

You mean this paper, right?
http://eprint.iacr.org/2012/584.pdf

I read that paper, and I had some computer science classes in university, but I 
didn't see anything that hints at shell game fraud, nor did I find anything 
related to shell games, nor anything related to fraud. A search for "bitcoin 
shell game fraud" didn't provide any useful information...

-Michael

Am 06.07.2013 um 23:35 schrieb Will Ness <[email protected]>:

> Peter Hall <peter.hall <at> memorphic.com> writes:
> 
>> 
>> Hi, I'm working on a little library to trade bitcoins via the MtGox
> API.https://github.com/peterjoel/auto-trader
> 
> Are you aware of Adi Shamir's et.al. paper and its implications? Basically,
> they discovered it's a shell game fraud. (search terms: "bitcoin shamir").
> 
> 
> 
> 
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners




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

Message: 2
Date: Sun, 7 Jul 2013 14:26:41 -0300
From: Igor Pinheiro Le?o <[email protected]>
Subject: [Haskell-beginners] Filter to a list of function
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Message-ID:
        <cagrj+gcxyz78xz9cpovbyab06zsgqhputgjyswl16gy4tq5...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi Guys,
sorry in upsetting you again.
Is there a way in which I can filter one list of function, one function at
time, to a list of elements, declaring this and only this function.

It would be exactly like this:

specifcFilter :: [(a->Bool)] -> [a] -> [a]

where for each element of type 'a' on the second list it would exist a
function on  the first list that would be applied to it filtering.

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/20130707/43d072b6/attachment-0001.htm>

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

Message: 3
Date: Sun, 7 Jul 2013 14:32:21 -0300
From: Igor Pinheiro Le?o <[email protected]>
Subject: Re: [Haskell-beginners] Filter to a list of function
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Message-ID:
        <CAGrJ+gdjuLkEFRoTCAoXoegAwB1=40uszc2elwyhjp+60ad...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hum.. really sorry about the grammar mistakes.


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

> Hi Guys,
> sorry in upsetting you again.
> Is there a way in which I can filter one list of function, one function at
> time, to a list of elements, declaring this and only this function.
>
> It would be exactly like this:
>
> specifcFilter :: [(a->Bool)] -> [a] -> [a]
>
> where for each element of type 'a' on the second list it would exist a
> function on  the first list that would be applied to it filtering.
>
> 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/20130707/bb816cd6/attachment-0001.htm>

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

Message: 4
Date: Sun, 7 Jul 2013 18:49:45 +0100
From: Benjamin Edwards <[email protected]>
Subject: Re: [Haskell-beginners] Filter to a list of function
To: haskellbeginners <[email protected]>
Message-ID:
        <CAN6k4njhYp-wvXchvU0TWB-N3AS5pxqgiNJG9=51O=esudo...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

But lists only contain one type, so I am not sure what you want to do here.
Get elements that are true for all filters? For at least one filter? There
is no sub typing relationship...
On 7 Jul 2013 18:34, "Igor Pinheiro Le?o" <[email protected]> wrote:

> Hum.. really sorry about the grammar mistakes.
>
>
> 2013/7/7 Igor Pinheiro Le?o <[email protected]>
>
>> Hi Guys,
>> sorry in upsetting you again.
>> Is there a way in which I can filter one list of function, one function
>> at time, to a list of elements, declaring this and only this function.
>>
>> It would be exactly like this:
>>
>> specifcFilter :: [(a->Bool)] -> [a] -> [a]
>>
>> where for each element of type 'a' on the second list it would exist a
>> function on  the first list that would be applied to it filtering.
>>
>> 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/20130707/6cf2b889/attachment-0001.htm>

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

Message: 5
Date: Sun, 7 Jul 2013 13:53:41 -0400
From: Brent Yorgey <[email protected]>
Subject: Re: [Haskell-beginners] Filter to a list of function
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=iso-8859-1

No need to apologize for grammar. =) There are lots of people in the
Haskell community with many different levels of English fluency, we
all just try to communicate as best we can.

As for your question, I am not quite sure I understand what you want.
Do you mean that you want to "zip" the lists together, applying each
function to one element?  As in

  specificFilter [(>3), even, (<19)] [6, 7, 8] = [6,8]

because 6>3 and 8>19 (but 7 is not even)?

If that is what you mean, then you could do something like

  specificFilter ps xs = map snd . filter fst $ zipWith (\p x -> (p x, x)) ps xs

If you mean something else, then maybe you could give some examples of
what you want?

-Brent

On Sun, Jul 07, 2013 at 02:32:21PM -0300, Igor Pinheiro Le?o wrote:
> Hum.. really sorry about the grammar mistakes.
> 
> 
> 2013/7/7 Igor Pinheiro Le?o <[email protected]>
> 
> > Hi Guys,
> > sorry in upsetting you again.
> > Is there a way in which I can filter one list of function, one function at
> > time, to a list of elements, declaring this and only this function.
> >
> > It would be exactly like this:
> >
> > specifcFilter :: [(a->Bool)] -> [a] -> [a]
> >
> > where for each element of type 'a' on the second list it would exist a
> > function on  the first list that would be applied to it filtering.
> >
> > 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




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

Message: 6
Date: Sun, 7 Jul 2013 15:09:01 -0300
From: Igor Pinheiro Le?o <[email protected]>
Subject: Re: [Haskell-beginners] Filter to a list of function
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Message-ID:
        <CAGrJ+gfkZv9qemUmEjCiiD34A9u2d5RSkoZq=5p0e0w2xgj...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Thank you Benjamin and Brent!
Brent, yes, that was exactly what i wanted to do. Thank you!

Kind regards,
Igor



2013/7/7 Brent Yorgey <[email protected]>

> No need to apologize for grammar. =) There are lots of people in the
> Haskell community with many different levels of English fluency, we
> all just try to communicate as best we can.
>
> As for your question, I am not quite sure I understand what you want.
> Do you mean that you want to "zip" the lists together, applying each
> function to one element?  As in
>
>   specificFilter [(>3), even, (<19)] [6, 7, 8] = [6,8]
>
> because 6>3 and 8>19 (but 7 is not even)?
>
> If that is what you mean, then you could do something like
>
>   specificFilter ps xs = map snd . filter fst $ zipWith (\p x -> (p x, x))
> ps xs
>
> If you mean something else, then maybe you could give some examples of
> what you want?
>
> -Brent
>
> On Sun, Jul 07, 2013 at 02:32:21PM -0300, Igor Pinheiro Le?o wrote:
> > Hum.. really sorry about the grammar mistakes.
> >
> >
> > 2013/7/7 Igor Pinheiro Le?o <[email protected]>
> >
> > > Hi Guys,
> > > sorry in upsetting you again.
> > > Is there a way in which I can filter one list of function, one
> function at
> > > time, to a list of elements, declaring this and only this function.
> > >
> > > It would be exactly like this:
> > >
> > > specifcFilter :: [(a->Bool)] -> [a] -> [a]
> > >
> > > where for each element of type 'a' on the second list it would exist a
> > > function on  the first list that would be applied to it filtering.
> > >
> > > 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/20130707/ee88e8bd/attachment.htm>

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

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


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

Reply via email to