These are chat archives for ramda/ramda

Jan 2017
James Forbes
Jan 08 2017 00:06

But I guess that breaks over.

Is there an existing type like a lens, but only supports get and set but for primitive values

Like an Isomorphism that's composable

You could have one for say, var json = Iso(parseJSON, JSON.stringify)or var pixels = Iso( v => v + 'px', s.replace('px','') ) or var number = Iso(s => parseInt(s, 10), n => n.toString)

And you could compose them. So compose(pixels, number)

Jan 08 2017 19:09
Does anyone know of a good example of a solid rambda react app on github?
James Forbes
Jan 08 2017 21:25
So ramda-lens had exactly what I wanted all this time: :O