Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: [Perl 6] Re: A more elegant way to filter a nested hash?

by chromatic (Archbishop)
on Jun 09, 2018 at 20:00 UTC ( #1216277=note: print w/replies, xml ) Need Help??


in reply to [Perl 6] Re: A more elegant way to filter a nested hash?
in thread A more elegant way to filter a nested hash?

With apologies if you're not interested in a P6 solution.

As long as you're writing code in languages other than the one the OP presented, would you mind writing up the Inline Haskell version as well? Nested zippers are interesting. Otherwise, I'd personally like to see the Inline Javascript version using the new ES6 destructuring syntax.

  • Comment on Re: [Perl 6] Re: A more elegant way to filter a nested hash?

Replies are listed 'Best First'.
Re^2: [Perl 6] Re: A more elegant way to filter a nested hash?
by liz (Monsignor) on Jun 11, 2018 at 14:10 UTC
    I would suggest that people who know how to present a certain algorithm, would do so in the language they are fluent in. Since you appear you know what you're talking about, I would suggest that you provide the Haskell and Inline Javascript versions. So that we can all learn from it, rather than getting a lesson in being sarcastic.
      I would suggest that people who know how to present a certain algorithm, would do so in the language they are fluent in.

      "Write it in a different language" is about as sarcastic answer to the question "How can I do this more elegantly?" as I can imagine, because "I'm interested in these things so you should be too" seems selfish.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1216277]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2020-10-29 11:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (270 votes). Check out past polls.

    Notices?