https://gist.github.com/raine/d12d0ec3e72b2945510b
Thanks for the tutorial!
A few things:
- After installing ramda-cli, I have command
ramda, not R. I see that alias R='ramda' is in the readme but it could also go in this tutorial at the beginning.
- I was confused by
reverse 'take 10' -- initially thinking that reverse takes take 10 as an argument. I suggest putting reverse on a newline. I think this makes it more consistent by showing each line is equivalent to one argument to R.pipe:
curl -s $url | R -p 'filter where-eq fork: false' \
'project [\name \stargazers_count]' \
'sort-by prop \stargazers_count' \
reverse \
'take 10'
- Regarding run from file: Can I
require the version of ramda installed by ramda-cli in my script? Or should I install npm install -g ramda separately?
https://gist.github.com/raine/d12d0ec3e72b2945510b
Thanks for the tutorial!
A few things:
ramda, notR. I see thatalias R='ramda'is in the readme but it could also go in this tutorial at the beginning.reverse 'take 10'-- initially thinking thatreversetakestake 10as an argument. I suggest puttingreverseon a newline. I think this makes it more consistent by showing each line is equivalent to one argument toR.pipe:requirethe version oframdainstalled byramda-cliin my script? Or should I installnpm install -g ramdaseparately?