[Home] [By Thread] [By Date] [Recent Entries]

  • From: Richard Salz <rsalz@u...>
  • To: "Costello, Roger L." <costello@m...>
  • Date: Thu, 7 Apr 2011 10:26:26 -0400

"Costello, Roger L." <costello@m...> wrote on 04/07/2011 09:56:27 AM:

> The examples illustrate a recurring pattern: start at one element 
> and hop, hop, hop to each element in the chain of references.
> 
> How do I cast this recurring pattern into a functional programming 
> mindset? For example, how would it be viewed from the Haskell mindset?

Functional programming does not prohibit "inner eval"

For example, in some mythical query language:

        (select '(Author)
                (filter equals
                        (nodeset '/Book/@id)
                        (select
                                '(@idref)
                                (nodeset 
'//GuestAuthor/BookSigning/@idref))
                        )
                )
        )

--
STSM, WebSphere Appliance Architect
https://www.ibm.com/developerworks/mydeveloperworks/blogs/soma/




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member