Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Higher order functions in zsh (article link)
- X-seq: zsh-users 17681
- From: Stephen Blott <smblott@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Higher order functions in zsh (article link)
- Date: Fri, 8 Mar 2013 08:40:02 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=nJuYC6hxyTbEsSkkIgbo+n+rnvhWLuAN6uQCf7VJzkY=; b=mbIFfbLB0rN+kjRw/WMReWlbp+da7gX2laU37rmble5+xwWpkeBKp8s6xjyDmTdts4 vmBHLP8S711idH3IACXafUG+IHnPchNcNSs4JkNumRJSOs54t40FAlQ9H3ST/aB2Yvzm 0Ee55FaM22725zk4V22KTTSd8O5Ytl1tC0qlESw9bUwGZ8ZI2WT0ks4ciy1LKODtZG6M iFmzsSFQJiD7PfsdlMnL9mo817vuIAq9oGGHKuCAqfXlXjnNo4wCe0+PsNMscqNTWrPY VA2D7GYeRt19+TDPk8TQlSta7quLqedY4RcqZOAe0Q2z7L+Vgn9FRc+nafNpEuZ0Zq+i LGyA==
- In-reply-to: <CACQNQ9NWxOUsF_iZ++ygUVmDpdRgnrezyDJpPg4cfJ4tiqDu1g@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CACQNQ9NWxOUsF_iZ++ygUVmDpdRgnrezyDJpPg4cfJ4tiqDu1g@mail.gmail.com>
On Thu, Mar 07, 2013 at 10:55:01AM +0530, rahul wrote:
THis has been posted on reddit programming, thought I'd share with you.
http://yannesposito.com/Scratch/en/blog/Higher-order-function-in-zsh/index.html
---end quoted text---
The examples look like those of a Java programmer translating their Java
programming style to shell programming. They can be better solved with
zargs or, if you insist on a Posix shell, then pipes. Pipes in Unix-like
systems play exactly the role of map, filter and reduce in functional
systems.
That's not to say that there's no merit to the idea. I'd just like to see
more compelling examples.
Steve
Messages sorted by:
Reverse Date,
Date,
Thread,
Author