These are chat archives for ramda/ramda
I’m writing a blog post on transducers and just finished my first draft. I’m looking for people that could check the content and grammar (not a native speaker). It would really help me out creating good content for other people in the community.
I've also included a section about RamdaJs :).
Comment in the file or add suggestions. Thanks a lot!
any(equals(false))([true, true, false]) // => true any(equals(false))([true, true, true]) // => false any(equals(false))([true, false, false]) // => true any(equals(false))([false, false, false]) // => true any(equals(false))() // => false
when, there is a
R.whenwhich is equivalent to what you've written:
const specialCase = R.ifElse( divByC, divByCD, R.identity ); const specialCase2 = R.when(divByC, divByCD);
const isZero = R.equals(R.__, 0), just
const isZero = R.equals(0);
@isidorosp if you want a pointfree function then:
const parseData = R.pipe( R.transpose, R.converge(R.map, [ R.pipe(R.head, R.zipObj), R.tail ]), );
Ah nice one...the solution I was trying to come up with ha. Have never thought to use map as a converging function, clever.