These are chat archives for ramda/ramda

25th
Oct 2016
James Forbes
@JAForbes
Oct 25 2016 01:23
@kwijibo yeah I've actually been asked a few times "what language is that?" when using ramda. Which is kind of a reasonable question.
@FrancisVega sorry I am not familiar with cocoascript, can you include files in that environment? If not, can you grab files from the filesystem and eval them? I had limited success doing similar stuff in Windows Scripting Host
Matt McKellar-Spence
@MattMS
Oct 25 2016 03:23
@FrancisVega maybe this will be useful: http://developer.sketchapp.com/examples/code/sharing-code/
Then just include one of the JS files from here: https://github.com/ramda/ramda/tree/master/dist
Anton Strömkvist
@ahstro
Oct 25 2016 11:38
Is there a not but for truthy values? Feels like there should be, or do I have to not(not())?
Hmm, I guess identity does the trick when filtering
James Forbes
@JAForbes
Oct 25 2016 11:45
@ahstro what do you mean by not for truthy values?
Do you mean, you'd want not('hello') to return false?
or not(null) to return true?
Anton Strömkvist
@ahstro
Oct 25 2016 11:46
I think I'm just being stupid tbh
Or wait, no, maybe not..
I basically want x => !!x
James Forbes
@JAForbes
Oct 25 2016 11:47
Oh, so cast it to a boolean?
Would Boolean work?
And you're not being stupid! I'm curious what you're after
Would [0, 1, 'hello', null].filter(Boolean) work well?
Anton Strömkvist
@ahstro
Oct 25 2016 11:49
Yes, that's prefect, of course! Thanks
James Forbes
@JAForbes
Oct 25 2016 11:49
Glad to help :)