These are chat archives for ramda/ramda

17th
Jul 2015
Jethro Larson
@jethrolarson
Jul 17 2015 01:21
I keep getting burned by thinking that R.gt(1) === (x)=> x > 1
David Chase
@davidchase
Jul 17 2015 01:36
in the article it says 14secs not 14ms
John-David Dalton
@jdalton
Jul 17 2015 02:31
@davidchase 14ms * 1,000 = 14 seconds
Hardy Jones
@joneshf
Jul 17 2015 03:06
Does ramda have a typescript definition file?
Or a purescript one?
ifnot, want one?
or both
David Chambers
@davidchambers
Jul 17 2015 05:01
@joneshf, I seem to recall someone talking about a TypeScript definition file. I don’t know where it is, though, or whether it’s up to date.
Raine Virta
@raine
Jul 17 2015 09:36
jethrolarson: me too, at first
David Chambers
@davidchambers
Jul 17 2015 18:33
get :: Type -> String -> Accessible -> Maybe a
If a is a member of the member of the type specified by the first argument, how does one signify this?
Actually, I’m getting myself confused. a is not a member of the type specified by the first argument, a is the type.

But it would not be correct to write

get :: a -> String -> Accessible -> Maybe a

since the first argument must be a type rather than a value.

Context: plaid/sanctuary#64
Michael Hurley
@buzzdecafe
Jul 17 2015 21:08
pretty neat, not sure what it means: https://www.youtube.com/watch?v=gD1II6puKjE
Jethro Larson
@jethrolarson
Jul 17 2015 22:30

I just realized that jQuery works kind of like a Maybe

$('.exists').text('foo') //-> [<div class="exists">foo</div>]
$('.noexist').text('foo') //->[]

I guess it's just because most of the methods work like map over the collection

Jethro Larson
@jethrolarson
Jul 17 2015 23:27
I've seen this property of jQuery listed many times as a safety feature against null selections.