These are chat archives for ramda/ramda

13th
Jul 2018
Tzelon Machluf
@Tzelon
Jul 13 2018 13:07
Newbie question: is there a full tutorial how to build a simple app, like Todo List with Ramda?
Mike Lambert
@lax4mike
Jul 13 2018 18:23
i'm not sure, but you should definitely check this out: https://mostly-adequate.gitbooks.io/mostly-adequate-guide/
ramda is more of a utility library, you'd likely want to pair it with a framework, like react
Sten-H
@Sten-H
Jul 13 2018 22:28
What is this sort of function property called f(f(x)) = x, for example a function that would flip a bool would have this property: flipBool(flipBool(boolVal)) === boolVal
I'm sure I've read the word somewhere, I have it on the tip of my tongue
Vesa Karvonen
@polytypic
Jul 13 2018 22:35
Idempotency
Or, in another context, the fixed point of a function.
Ah... Actually I think I misread your question.
What you are looking for is a function that is its own inverse.
Aka involution.
Sten-H
@Sten-H
Jul 13 2018 22:45
@polytypic thanks a lot!
Jason Gretz
@jagretz
Jul 13 2018 23:20

curious, Is there a way I can accomplish something similar to piping a curried function? such as

const pipedFn  = pipe(
  mycurriedfn, // takes 2 args
  nextfn
)

so that I could invoke as pipedFn(1)(2)

Vesa Karvonen
@polytypic
Jul 13 2018 23:22
Just say
const pipedFn = curry(pipe(mycurriedfn, nextfn))
Jason Gretz
@jagretz
Jul 13 2018 23:23
that should do it
Jason Gretz
@jagretz
Jul 13 2018 23:30
awesome! thank you.