[Home] [By Thread] [By Date] [Recent Entries]
"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] |

Cart



