-
Notifications
You must be signed in to change notification settings - Fork 2
/
v0_20_1.json
1406 lines (1406 loc) · 73.8 KB
/
v0_20_1.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[
{
"description": "A special placeholder value used to specify \"gaps\" within curried functions,\nallowing partial application of any combination of arguments, regardless of\ntheir positions.\n\nIf `g` is a curried ternary function and `_` is `R.__`, the following are\nequivalent:\n\n - `g(1, 2, 3)`\n - `g(_, 2, 3)(1)`\n - `g(_, _, 3)(1)(2)`\n - `g(_, _, 3)(1, 2)`\n - `g(_, 2, _)(1, 3)`\n - `g(_, 2)(1)(3)`\n - `g(_, 2)(1, 3)`\n - `g(_, 2)(_, 3)(1)`",
"name": "__",
"sig": "",
"category": "Function"
},
{
"description": "Adds two values.",
"name": "add",
"sig": "Number -> Number -> Number",
"category": "Math"
},
{
"description": "Applies a function to the value at the given index of an array, returning a\nnew copy of the array with the element at the given index replaced with the\nresult of the function application.",
"name": "adjust",
"sig": "(a -> a) -> Number -> [a] -> [a]",
"category": "List"
},
{
"description": "Returns `true` if all elements of the list match the predicate, `false` if\nthere are any that don't.\n\nDispatches to the `all` method of the second argument, if present.\n\nActs as a transducer if a transformer is given in list position.",
"name": "all",
"sig": "(a -> Boolean) -> [a] -> Boolean",
"category": "List"
},
{
"description": "Returns a function that always returns the given value. Note that for\nnon-primitives the value returned is a reference to the original value.\n\nThis function is known as `const`, `constant`, or `K` (for K combinator) in\nother languages and libraries.",
"name": "always",
"sig": "a -> (* -> a)",
"category": "Function"
},
{
"description": "Returns `true` if both arguments are `true`; `false` otherwise.",
"name": "and",
"sig": "* -> * -> *",
"category": "Logic"
},
{
"description": "Returns `true` if at least one of elements of the list match the predicate,\n`false` otherwise.\n\nDispatches to the `any` method of the second argument, if present.\n\nActs as a transducer if a transformer is given in list position.",
"name": "any",
"sig": "(a -> Boolean) -> [a] -> Boolean",
"category": "List"
},
{
"description": "Returns a new list, composed of n-tuples of consecutive elements If `n` is\ngreater than the length of the list, an empty list is returned.\n\nDispatches to the `aperture` method of the second argument, if present.\n\nActs as a transducer if a transformer is given in list position.",
"name": "aperture",
"sig": "Number -> [a] -> [[a]]",
"category": "List"
},
{
"description": "Returns a new list containing the contents of the given list, followed by\nthe given element.",
"name": "append",
"sig": "a -> [a] -> [a]",
"category": "List"
},
{
"description": "Applies function `fn` to the argument list `args`. This is useful for\ncreating a fixed-arity function from a variadic function. `fn` should be a\nbound function if context is significant.",
"name": "apply",
"sig": "(*... -> a) -> [*] -> a",
"category": "Function"
},
{
"description": "Makes a shallow clone of an object, setting or overriding the specified\nproperty with the given value. Note that this copies and flattens prototype\nproperties onto the new object as well. All non-primitive properties are\ncopied by reference.",
"name": "assoc",
"sig": "String -> a -> {k: v} -> {k: v}",
"category": "Object"
},
{
"description": "Makes a shallow clone of an object, setting or overriding the nodes required\nto create the given path, and placing the specific value at the tail end of\nthat path. Note that this copies and flattens prototype properties onto the\nnew object as well. All non-primitive properties are copied by reference.",
"name": "assocPath",
"sig": "[String] -> a -> {k: v} -> {k: v}",
"category": "Object"
},
{
"description": "Creates a function that is bound to a context.\nNote: `R.bind` does not provide the additional argument-binding capabilities of\n[Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).",
"name": "bind",
"sig": "(* -> *) -> {*} -> (* -> *)",
"category": "Function"
},
{
"description": "Restricts a number to be within a range.\n\nAlso works for other ordered types such as Strings and Dates.",
"name": "clamp",
"sig": "Ord a => a -> a -> a -> a",
"category": "Relaction"
},
{
"description": "Makes a comparator function out of a function that reports whether the first\nelement is less than the second.",
"name": "comparator",
"sig": "(a, b -> Boolean) -> (a, b -> Number)",
"category": "Function"
},
{
"description": "Counts the elements of a list according to how many match each value of a\nkey generated by the supplied function. Returns an object mapping the keys\nproduced by `fn` to the number of occurrences in the list. Note that all\nkeys are coerced to strings because of how JavaScript objects work.",
"name": "countBy",
"sig": "(a -> String) -> [a] -> {*}",
"category": "Relation"
},
{
"description": "Returns a curried equivalent of the provided function, with the specified\narity. The curried function has two unusual capabilities. First, its\narguments needn't be provided one at a time. If `g` is `R.curryN(3, f)`, the\nfollowing are equivalent:\n\n - `g(1)(2)(3)`\n - `g(1)(2, 3)`\n - `g(1, 2)(3)`\n - `g(1, 2, 3)`\n\nSecondly, the special placeholder value `R.__` may be used to specify\n\"gaps\", allowing partial application of any combination of arguments,\nregardless of their positions. If `g` is as above and `_` is `R.__`, the\nfollowing are equivalent:\n\n - `g(1, 2, 3)`\n - `g(_, 2, 3)(1)`\n - `g(_, _, 3)(1)(2)`\n - `g(_, _, 3)(1, 2)`\n - `g(_, 2)(1)(3)`\n - `g(_, 2)(1, 3)`\n - `g(_, 2)(_, 3)(1)`",
"name": "curryN",
"sig": "Number -> (* -> a) -> (* -> a)",
"category": "Function"
},
{
"description": "Decrements its argument.",
"name": "dec",
"sig": "Number -> Number",
"category": "Math"
},
{
"description": "Returns the second argument if it is not `null`, `undefined` or `NaN`\notherwise the first argument is returned.",
"name": "defaultTo",
"sig": "a -> b -> a | b",
"category": "Logic"
},
{
"description": "Finds the set (i.e. no duplicates) of all elements in the first list not\ncontained in the second list. Duplication is determined according to the\nvalue returned by applying the supplied predicate to two list elements.",
"name": "differenceWith",
"sig": "(a -> a -> Boolean) -> [*] -> [*] -> [*]",
"category": "Relation"
},
{
"description": "Returns a new object that does not contain a `prop` property.",
"name": "dissoc",
"sig": "String -> {k: v} -> {k: v}",
"category": "Object"
},
{
"description": "Makes a shallow clone of an object, omitting the property at the given path.\nNote that this copies and flattens prototype properties onto the new object\nas well. All non-primitive properties are copied by reference.",
"name": "dissocPath",
"sig": "[String] -> {k: v} -> {k: v}",
"category": "Object"
},
{
"description": "Divides two numbers. Equivalent to `a / b`.",
"name": "divide",
"sig": "Number -> Number -> Number",
"category": "Math"
},
{
"description": "Returns a new list containing the last `n` elements of a given list, passing\neach value to the supplied predicate function, skipping elements while the\npredicate function returns `true`. The predicate function is passed one\nargument: *(value)*.\n\nDispatches to the `dropWhile` method of the second argument, if present.\n\nActs as a transducer if a transformer is given in list position.",
"name": "dropWhile",
"sig": "(a -> Boolean) -> [a] -> [a]",
"category": "List"
},
{
"description": "Returns the empty value of its argument's type. Ramda defines the empty\nvalue of Array (`[]`), Object (`{}`), String (`''`), and Arguments. Other\ntypes are supported if they define `<Type>.empty` and/or\n`<Type>.prototype.empty`.\n\nDispatches to the `empty` method of the first argument, if present.",
"name": "empty",
"sig": "a -> a",
"category": "Function"
},
{
"description": "Creates a new object by recursively evolving a shallow copy of `object`,\naccording to the `transformation` functions. All non-primitive properties\nare copied by reference.\n\nA `transformation` function will not be invoked if its corresponding key\ndoes not exist in the evolved object.",
"name": "evolve",
"sig": "{k: (v -> v)} -> {k: v} -> {k: v}",
"category": "Object"
},
{
"description": "Returns the first element of the list which matches the predicate, or\n`undefined` if no element matches.\n\nDispatches to the `find` method of the second argument, if present.\n\nActs as a transducer if a transformer is given in list position.",
"name": "find",
"sig": "(a -> Boolean) -> [a] -> a | undefined",
"category": "List"
},
{
"description": "Returns the index of the first element of the list which matches the\npredicate, or `-1` if no element matches.\n\nDispatches to the `findIndex` method of the second argument, if present.\n\nActs as a transducer if a transformer is given in list position.",
"name": "findIndex",
"sig": "(a -> Boolean) -> [a] -> Number",
"category": "List"
},
{
"description": "Returns the last element of the list which matches the predicate, or\n`undefined` if no element matches.\n\nDispatches to the `findLast` method of the second argument, if present.\n\nActs as a transducer if a transformer is given in list position.",
"name": "findLast",
"sig": "(a -> Boolean) -> [a] -> a | undefined",
"category": "List"
},
{
"description": "Returns the index of the last element of the list which matches the\npredicate, or `-1` if no element matches.\n\nDispatches to the `findLastIndex` method of the second argument, if present.\n\nActs as a transducer if a transformer is given in list position.",
"name": "findLastIndex",
"sig": "(a -> Boolean) -> [a] -> Number",
"category": "List"
},
{
"description": "Iterate over an input `list`, calling a provided function `fn` for each\nelement in the list.\n\n`fn` receives one argument: *(value)*.\n\nNote: `R.forEach` does not skip deleted or unassigned indices (sparse\narrays), unlike the native `Array.prototype.forEach` method. For more\ndetails on this behavior, see:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach#Description\n\nAlso note that, unlike `Array.prototype.forEach`, Ramda's `forEach` returns\nthe original array. In some libraries this function is named `each`.\n\nDispatches to the `forEach` method of the second argument, if present.",
"name": "forEach",
"sig": "(a -> *) -> [a] -> [a]",
"category": "List"
},
{
"description": "Creates a new object out of a list key-value pairs.",
"name": "fromPairs",
"sig": "[[k,v]] -> {k: v}",
"category": "List"
},
{
"description": "Returns `true` if the first argument is greater than the second; `false`\notherwise.",
"name": "gt",
"sig": "Ord a => a -> a -> Boolean",
"category": "Relation"
},
{
"description": "Returns `true` if the first argument is greater than or equal to the second;\n`false` otherwise.",
"name": "gte",
"sig": "Ord a => a -> a -> Boolean",
"category": "Relation"
},
{
"description": "Returns whether or not an object has an own property with the specified name",
"name": "has",
"sig": "s -> {s: x} -> Boolean",
"category": "Object"
},
{
"description": "Returns whether or not an object or its prototype chain has a property with\nthe specified name",
"name": "hasIn",
"sig": "s -> {s: x} -> Boolean",
"category": "Object"
},
{
"description": "Returns true if its arguments are identical, false otherwise. Values are\nidentical if they reference the same memory. `NaN` is identical to `NaN`;\n`0` and `-0` are not identical.",
"name": "identical",
"sig": "a -> a -> Boolean",
"category": "Relation"
},
{
"description": "A function that does nothing but return the parameter supplied to it. Good\nas a default or placeholder function.",
"name": "identity",
"sig": "a -> a",
"category": "Function"
},
{
"description": "Creates a function that will process either the `onTrue` or the `onFalse`\nfunction depending upon the result of the `condition` predicate.",
"name": "ifElse",
"sig": "(*... -> Boolean) -> (*... -> *) -> (*... -> *) -> (*... -> *)",
"category": "Logic"
},
{
"description": "Increments its argument.",
"name": "inc",
"sig": "Number -> Number",
"category": "Math"
},
{
"description": "Inserts the supplied element into the list, at index `index`. _Note that\nthis is not destructive_: it returns a copy of the list with the changes.\n<small>No lists have been harmed in the application of this function.</small>",
"name": "insert",
"sig": "Number -> a -> [a] -> [a]",
"category": "List"
},
{
"description": "Inserts the sub-list into the list, at index `index`. _Note that this is not\ndestructive_: it returns a copy of the list with the changes.\n<small>No lists have been harmed in the application of this function.</small>",
"name": "insertAll",
"sig": "Number -> [a] -> [a] -> [a]",
"category": "List"
},
{
"description": "Creates a new list with the separator interposed between elements.\n\nDispatches to the `intersperse` method of the second argument, if present.",
"name": "intersperse",
"sig": "a -> [a] -> [a]",
"category": "List"
},
{
"description": "See if an object (`val`) is an instance of the supplied constructor. This\nfunction will check up the inheritance chain, if any.",
"name": "is",
"sig": "(* -> {*}) -> a -> Boolean",
"category": "Type"
},
{
"description": "Tests whether or not an object is similar to an array.",
"name": "isArrayLike",
"sig": "* -> Boolean",
"category": "Type"
},
{
"description": "Checks if the input value is `null` or `undefined`.",
"name": "isNil",
"sig": "* -> Boolean",
"category": "Type"
},
{
"description": "Returns a list containing the names of all the enumerable own properties of\nthe supplied object.\nNote that the order of the output array is not guaranteed to be consistent\nacross different JS platforms.",
"name": "keys",
"sig": "{k: v} -> [k]",
"category": "Object"
},
{
"description": "Returns a list containing the names of all the properties of the supplied\nobject, including prototype properties.\nNote that the order of the output array is not guaranteed to be consistent\nacross different JS platforms.",
"name": "keysIn",
"sig": "{k: v} -> [k]",
"category": "Object"
},
{
"description": "Returns the number of elements in the array by returning `list.length`.",
"name": "length",
"sig": "[a] -> Number",
"category": "List"
},
{
"description": "Returns `true` if the first argument is less than the second; `false`\notherwise.",
"name": "lt",
"sig": "Ord a => a -> a -> Boolean",
"category": "Relation"
},
{
"description": "Returns `true` if the first argument is less than or equal to the second;\n`false` otherwise.",
"name": "lte",
"sig": "Ord a => a -> a -> Boolean",
"category": "Relation"
},
{
"description": "The mapAccum function behaves like a combination of map and reduce; it\napplies a function to each element of a list, passing an accumulating\nparameter from left to right, and returning a final value of this\naccumulator together with the new list.\n\nThe iterator function receives two arguments, *acc* and *value*, and should\nreturn a tuple *[acc, value]*.",
"name": "mapAccum",
"sig": "(acc -> x -> (acc, y)) -> acc -> [x] -> (acc, [y])",
"category": "List"
},
{
"description": "The mapAccumRight function behaves like a combination of map and reduce; it\napplies a function to each element of a list, passing an accumulating\nparameter from right to left, and returning a final value of this\naccumulator together with the new list.\n\nSimilar to `mapAccum`, except moves through the input list from the right to\nthe left.\n\nThe iterator function receives two arguments, *acc* and *value*, and should\nreturn a tuple *[acc, value]*.",
"name": "mapAccumRight",
"sig": "(acc -> x -> (acc, y)) -> acc -> [x] -> (acc, [y])",
"category": "List"
},
{
"description": "Tests a regular expression against a String. Note that this function will\nreturn an empty array when there are no matches. This differs from\n[`String.prototype.match`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match)\nwhich returns `null` when there are no matches.",
"name": "match",
"sig": "RegExp -> String -> [String | Undefined]",
"category": "String"
},
{
"description": "mathMod behaves like the modulo operator should mathematically, unlike the\n`%` operator (and by extension, R.modulo). So while \"-17 % 5\" is -2,\nmathMod(-17, 5) is 3. mathMod requires Integer arguments, and returns NaN\nwhen the modulus is zero or negative.",
"name": "mathMod",
"sig": "Number -> Number -> Number",
"category": "Math"
},
{
"description": "Returns the larger of its two arguments.",
"name": "max",
"sig": "Ord a => a -> a -> a",
"category": "Relation"
},
{
"description": "Takes a function and two values, and returns whichever value produces the\nlarger result when passed to the provided function.",
"name": "maxBy",
"sig": "Ord b => (a -> b) -> a -> a -> a",
"category": "Relation"
},
{
"description": "Create a new object with the own properties of the first object merged with\nthe own properties of the second object. If a key exists in both objects,\nthe value from the second object will be used.",
"name": "merge",
"sig": "{k: v} -> {k: v} -> {k: v}",
"category": "Object"
},
{
"description": "Merges a list of objects together into one object.",
"name": "mergeAll",
"sig": "[{k: v}] -> {k: v}",
"category": "List"
},
{
"description": "Creates a new object with the own properties of the two provided objects. If\na key exists in both objects, the provided function is applied to the key\nand the values associated with the key in each object, with the result being\nused as the value associated with the key in the returned object. The key\nwill be excluded from the returned object if the resulting value is\n`undefined`.",
"name": "mergeWithKey",
"sig": "(String -> a -> a -> a) -> {a} -> {a} -> {a}",
"category": "Object"
},
{
"description": "Returns the smaller of its two arguments.",
"name": "min",
"sig": "Ord a => a -> a -> a",
"category": "Relation"
},
{
"description": "Takes a function and two values, and returns whichever value produces the\nsmaller result when passed to the provided function.",
"name": "minBy",
"sig": "Ord b => (a -> b) -> a -> a -> a",
"category": "Relation"
},
{
"description": "Divides the second parameter by the first and returns the remainder. Note\nthat this function preserves the JavaScript-style behavior for modulo. For\nmathematical modulo see `mathMod`.",
"name": "modulo",
"sig": "Number -> Number -> Number",
"category": "Math"
},
{
"description": "Multiplies two numbers. Equivalent to `a * b` but curried.",
"name": "multiply",
"sig": "Number -> Number -> Number",
"category": "Math"
},
{
"description": "Wraps a function of any arity (including nullary) in a function that accepts\nexactly `n` parameters. Any extraneous parameters will not be passed to the\nsupplied function.",
"name": "nAry",
"sig": "Number -> (* -> a) -> (* -> a)",
"category": "Function"
},
{
"description": "Negates its argument.",
"name": "negate",
"sig": "Number -> Number",
"category": "Math"
},
{
"description": "Returns `true` if no elements of the list match the predicate, `false`\notherwise.\n\nDispatches to the `any` method of the second argument, if present.",
"name": "none",
"sig": "(a -> Boolean) -> [a] -> Boolean",
"category": "List"
},
{
"description": "A function that returns the `!` of its argument. It will return `true` when\npassed false-y value, and `false` when passed a truth-y one.",
"name": "not",
"sig": "* -> Boolean",
"category": "Logic"
},
{
"description": "Returns the nth element of the given list or string. If n is negative the\nelement at index length + n is returned.",
"name": "nth",
"sig": "Number -> [a] -> a | Undefined",
"category": "List"
},
{
"description": "Returns a function which returns its nth argument.",
"name": "nthArg",
"sig": "Number -> *... -> *",
"category": "Function"
},
{
"description": "Creates an object containing a single key:value pair.",
"name": "objOf",
"sig": "String -> a -> {String:a}",
"category": "Object"
},
{
"description": "Returns a singleton array containing the value provided.\n\nNote this `of` is different from the ES6 `of`; See\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of",
"name": "of",
"sig": "a -> [a]",
"category": "Function"
},
{
"description": "Accepts a function `fn` and returns a function that guards invocation of\n`fn` such that `fn` can only ever be called once, no matter how many times\nthe returned function is invoked. The first value calculated is returned in\nsubsequent invocations.",
"name": "once",
"sig": "(a... -> b) -> (a... -> b)",
"category": "Function"
},
{
"description": "Returns `true` if one or both of its arguments are `true`. Returns `false`\nif both arguments are `false`.",
"name": "or",
"sig": "* -> * -> *",
"category": "Logic"
},
{
"description": "Returns the result of \"setting\" the portion of the given data structure\nfocused by the given lens to the result of applying the given function to\nthe focused value.",
"name": "over",
"sig": "Lens s a -> (a -> a) -> s -> s",
"category": "Object"
},
{
"description": "Takes two arguments, `fst` and `snd`, and returns `[fst, snd]`.",
"name": "pair",
"sig": "a -> b -> (a,b)",
"category": "List"
},
{
"description": "Retrieve the value at a given path.",
"name": "path",
"sig": "[String] -> {k: v} -> v | Undefined",
"category": "Object"
},
{
"description": "If the given, non-null object has a value at the given path, returns the\nvalue at that path. Otherwise returns the provided default value.",
"name": "pathOr",
"sig": "a -> [String] -> Object -> a",
"category": "Object"
},
{
"description": "Returns `true` if the specified object property at given path satisfies the\ngiven predicate; `false` otherwise.",
"name": "pathSatisfies",
"sig": "(a -> Boolean) -> [String] -> Object -> Boolean",
"category": "Logic"
},
{
"description": "Returns a partial copy of an object containing only the keys specified. If\nthe key does not exist, the property is ignored.",
"name": "pick",
"sig": "[k] -> {k: v} -> {k: v}",
"category": "Object"
},
{
"description": "Similar to `pick` except that this one includes a `key: undefined` pair for\nproperties that don't exist.",
"name": "pickAll",
"sig": "[k] -> {k: v} -> {k: v}",
"category": "Object"
},
{
"description": "Returns a partial copy of an object containing only the keys that satisfy\nthe supplied predicate.",
"name": "pickBy",
"sig": "(v, k -> Boolean) -> {k: v} -> {k: v}",
"category": "Object"
},
{
"description": "Returns a new list with the given element at the front, followed by the\ncontents of the list.",
"name": "prepend",
"sig": "a -> [a] -> [a]",
"category": "List"
},
{
"description": "Returns a function that when supplied an object returns the indicated\nproperty of that object, if it exists.",
"name": "prop",
"sig": "s -> {s: a} -> a | Undefined",
"category": "Object"
},
{
"description": "If the given, non-null object has an own property with the specified name,\nreturns the value of that property. Otherwise returns the provided default\nvalue.",
"name": "propOr",
"sig": "a -> String -> Object -> a",
"category": "Object"
},
{
"description": "Returns `true` if the specified object property satisfies the given\npredicate; `false` otherwise.",
"name": "propSatisfies",
"sig": "(a -> Boolean) -> String -> {String: a} -> Boolean",
"category": "Logic"
},
{
"description": "Acts as multiple `prop`: array of keys in, array of values out. Preserves\norder.",
"name": "props",
"sig": "[k] -> {k: v} -> [v]",
"category": "Object"
},
{
"description": "Returns a list of numbers from `from` (inclusive) to `to` (exclusive).",
"name": "range",
"sig": "Number -> Number -> [Number]",
"category": "List"
},
{
"description": "Returns a single item by iterating through the list, successively calling\nthe iterator function and passing it an accumulator value and the current\nvalue from the array, and then passing the result to the next call.\n\nSimilar to `reduce`, except moves through the input list from the right to\nthe left.\n\nThe iterator function receives two values: *(acc, value)*\n\nNote: `R.reduceRight` does not skip deleted or unassigned indices (sparse\narrays), unlike the native `Array.prototype.reduce` method. For more details\non this behavior, see:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduceRight#Description",
"name": "reduceRight",
"sig": "(a,b -> a) -> a -> [b] -> a",
"category": "List"
},
{
"description": "Returns a value wrapped to indicate that it is the final value of the reduce\nand transduce functions. The returned value should be considered a black\nbox: the internal structure is not guaranteed to be stable.\n\nNote: this optimization is unavailable to functions not explicitly listed\nabove. For instance, it is not currently supported by reduceRight.",
"name": "reduced",
"sig": "a -> *",
"category": "List"
},
{
"description": "Removes the sub-list of `list` starting at index `start` and containing\n`count` elements. _Note that this is not destructive_: it returns a copy of\nthe list with the changes.\n<small>No lists have been harmed in the application of this function.</small>",
"name": "remove",
"sig": "Number -> Number -> [a] -> [a]",
"category": "List"
},
{
"description": "Replace a substring or regex match in a string with a replacement.",
"name": "replace",
"sig": "RegExp|String -> String -> String -> String",
"category": "String"
},
{
"description": "Returns a new list or string with the elements or characters in reverse\norder.",
"name": "reverse",
"sig": "[a] -> [a]",
"category": "List"
},
{
"description": "Scan is similar to reduce, but returns a list of successively reduced values\nfrom the left",
"name": "scan",
"sig": "(a,b -> a) -> a -> [b] -> [a]",
"category": "List"
},
{
"description": "Returns the result of \"setting\" the portion of the given data structure\nfocused by the given lens to the given value.",
"name": "set",
"sig": "Lens s a -> a -> s -> s",
"category": "Object"
},
{
"description": "Returns the elements of the given list or string (or object with a `slice`\nmethod) from `fromIndex` (inclusive) to `toIndex` (exclusive).\n\nDispatches to the `slice` method of the third argument, if present.",
"name": "slice",
"sig": "Number -> Number -> [a] -> [a]",
"category": "List"
},
{
"description": "Returns a copy of the list, sorted according to the comparator function,\nwhich should accept two values at a time and return a negative number if the\nfirst value is smaller, a positive number if it's larger, and zero if they\nare equal. Please note that this is a **copy** of the list. It does not\nmodify the original.",
"name": "sort",
"sig": "(a,a -> Number) -> [a] -> [a]",
"category": "List"
},
{
"description": "Sorts the list according to the supplied function.",
"name": "sortBy",
"sig": "Ord b => (a -> b) -> [a] -> [a]",
"category": "Relation"
},
{
"description": "Splits a given list or string at a given index.",
"name": "splitAt",
"sig": "Number -> [a] -> [[a], [a]]",
"category": "List"
},
{
"description": "Splits a collection into slices of the specified length.",
"name": "splitEvery",
"sig": "Number -> [a] -> [[a]]",
"category": "List"
},
{
"description": "Takes a list and a predicate and returns a pair of lists with the following properties:\n\n - the result of concatenating the two output lists is equivalent to the input list;\n - none of the elements of the first output list satisfies the predicate; and\n - if the second output list is non-empty, its first element satisfies the predicate.",
"name": "splitWhen",
"sig": "(a -> Boolean) -> [a] -> [[a], [a]]",
"category": "List"
},
{
"description": "Subtracts its second argument from its first argument.",
"name": "subtract",
"sig": "Number -> Number -> Number",
"category": "Math"
},
{
"description": "Returns all but the first element of the given list or string (or object\nwith a `tail` method).\n\nDispatches to the `slice` method of the first argument, if present.",
"name": "tail",
"sig": "[a] -> [a]",
"category": "List"
},
{
"description": "Returns the first `n` elements of the given list, string, or\ntransducer/transformer (or object with a `take` method).\n\nDispatches to the `take` method of the second argument, if present.",
"name": "take",
"sig": "Number -> [a] -> [a]",
"category": "List"
},
{
"description": "Returns a new list containing the last `n` elements of a given list, passing\neach value to the supplied predicate function, and terminating when the\npredicate function returns `false`. Excludes the element that caused the\npredicate function to fail. The predicate function is passed one argument:\n*(value)*.",
"name": "takeLastWhile",
"sig": "(a -> Boolean) -> [a] -> [a]",
"category": "List"
},
{
"description": "Returns a new list containing the first `n` elements of a given list,\npassing each value to the supplied predicate function, and terminating when\nthe predicate function returns `false`. Excludes the element that caused the\npredicate function to fail. The predicate function is passed one argument:\n*(value)*.\n\nDispatches to the `takeWhile` method of the second argument, if present.\n\nActs as a transducer if a transformer is given in list position.",
"name": "takeWhile",
"sig": "(a -> Boolean) -> [a] -> [a]",
"category": "List"
},
{
"description": "Runs the given function with the supplied object, then returns the object.",
"name": "tap",
"sig": "(a -> *) -> a -> a",
"category": "Function"
},
{
"description": "Calls an input function `n` times, returning an array containing the results\nof those function calls.\n\n`fn` is passed one argument: The current value of `n`, which begins at `0`\nand is gradually incremented to `n - 1`.",
"name": "times",
"sig": "(Number -> a) -> Number -> [a]",
"category": "List"
},
{
"description": "Converts an object into an array of key, value arrays. Only the object's\nown properties are used.\nNote that the order of the output array is not guaranteed to be consistent\nacross different JS platforms.",
"name": "toPairs",
"sig": "{String: *} -> [[String,*]]",
"category": "Object"
},
{
"description": "Converts an object into an array of key, value arrays. The object's own\nproperties and prototype properties are used. Note that the order of the\noutput array is not guaranteed to be consistent across different JS\nplatforms.",
"name": "toPairsIn",
"sig": "{String: *} -> [[String,*]]",
"category": "Object"
},
{
"description": "Transposes the rows and columns of a 2D list.\nWhen passed a list of `n` lists of length `x`,\nreturns a list of `x` lists of length `n`.",
"name": "transpose",
"sig": "[[a]] -> [[a]]",
"category": "List"
},
{
"description": "Removes (strips) whitespace from both ends of the string.",
"name": "trim",
"sig": "String -> String",
"category": "String"
},
{
"description": "`tryCatch` takes two functions, a `tryer` and a `catcher`. The returned\nfunction evaluates the `tryer`; if it does not throw, it simply returns the\nresult. If the `tryer` *does* throw, the returned function evaluates the\n`catcher` function and returns its result. Note that for effective\ncomposition with this function, both the `tryer` and `catcher` functions\nmust return the same type of results.",
"name": "tryCatch",
"sig": "(...x -> a) -> ((e, ...x) -> a) -> (...x -> a)",
"category": "Function"
},
{
"description": "Gives a single-word string description of the (native) type of a value,\nreturning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not\nattempt to distinguish user Object types any further, reporting them all as\n'Object'.",
"name": "type",
"sig": "(* -> {*}) -> String",
"category": "Type"
},
{
"description": "Takes a function `fn`, which takes a single array argument, and returns a\nfunction which:\n\n - takes any number of positional arguments;\n - passes these arguments to `fn` as an array; and\n - returns the result.\n\nIn other words, R.unapply derives a variadic function from a function which\ntakes an array. R.unapply is the inverse of R.apply.",
"name": "unapply",
"sig": "([*...] -> a) -> (*... -> a)",
"category": "Function"
},
{
"description": "Wraps a function of any arity (including nullary) in a function that accepts\nexactly 1 parameter. Any extraneous parameters will not be passed to the\nsupplied function.",
"name": "unary",
"sig": "(* -> b) -> (a -> b)",
"category": "Function"
},
{
"description": "Returns a function of arity `n` from a (manually) curried function.",
"name": "uncurryN",
"sig": "Number -> (a -> b) -> (a -> c)",
"category": "Function"
},
{
"description": "Builds a list from a seed value. Accepts an iterator function, which returns\neither false to stop iteration or an array of length 2 containing the value\nto add to the resulting list and the seed to be used in the next call to the\niterator function.\n\nThe iterator function receives one argument: *(seed)*.",
"name": "unfold",
"sig": "(a -> [b]) -> * -> [b]",
"category": "List"
},
{
"description": "Returns a new list containing only one copy of each element in the original\nlist, based upon the value returned by applying the supplied predicate to\ntwo list elements. Prefers the first item if two items compare equal based\non the predicate.",
"name": "uniqWith",
"sig": "(a, a -> Boolean) -> [a] -> [a]",
"category": "List"
},
{
"description": "Tests the final argument by passing it to the given predicate function. If\nthe predicate is not satisfied, the function will return the result of\ncalling the `whenFalseFn` function with the same argument. If the predicate\nis satisfied, the argument is returned as is.",
"name": "unless",
"sig": "(a -> Boolean) -> (a -> a) -> a -> a",
"category": "Logic"
},
{
"description": "Takes a predicate, a transformation function, and an initial value,\nand returns a value of the same type as the initial value.\nIt does so by applying the transformation until the predicate is satisfied,\nat which point it returns the satisfactory value.",
"name": "until",
"sig": "(a -> Boolean) -> (a -> a) -> a -> a",
"category": "Logic"
},
{
"description": "Returns a new copy of the array with the element at the provided index\nreplaced with the given value.",
"name": "update",
"sig": "Number -> a -> [a] -> [a]",
"category": "List"
},
{
"description": "Accepts a function `fn` and a list of transformer functions and returns a\nnew curried function. When the new function is invoked, it calls the\nfunction `fn` with parameters consisting of the result of calling each\nsupplied handler on successive arguments to the new function.\n\nIf more arguments are passed to the returned function than transformer\nfunctions, those arguments are passed directly to `fn` as additional\nparameters. If you expect additional arguments that don't need to be\ntransformed, although you can ignore them, it's best to pass an identity\nfunction so that the new function reports the correct arity.",
"name": "useWith",
"sig": "(x1 -> x2 -> ... -> z) -> [(a -> x1), (b -> x2), ...] -> (a -> b -> ... -> z)",
"category": "Function"
},
{
"description": "Returns a list of all the enumerable own properties of the supplied object.\nNote that the order of the output array is not guaranteed across different\nJS platforms.",
"name": "values",
"sig": "{k: v} -> [v]",
"category": "Object"
},
{
"description": "Returns a list of all the properties, including prototype properties, of the\nsupplied object.\nNote that the order of the output array is not guaranteed to be consistent\nacross different JS platforms.",
"name": "valuesIn",
"sig": "{k: v} -> [v]",
"category": "Object"
},
{
"description": "Returns a \"view\" of the given data structure, determined by the given lens.\nThe lens's focus determines which portion of the data structure is visible.",
"name": "view",
"sig": "Lens s a -> s -> a",
"category": "Object"
},
{
"description": "Tests the final argument by passing it to the given predicate function. If\nthe predicate is satisfied, the function will return the result of calling\nthe `whenTrueFn` function with the same argument. If the predicate is not\nsatisfied, the argument is returned as is.",
"name": "when",
"sig": "(a -> Boolean) -> (a -> a) -> a -> a",
"category": "Logic"
},
{
"description": "Takes a spec object and a test object; returns true if the test satisfies\nthe spec. Each of the spec's own properties must be a predicate function.\nEach predicate is applied to the value of the corresponding property of the\ntest object. `where` returns true if all the predicates return true, false\notherwise.\n\n`where` is well suited to declaratively expressing constraints for other\nfunctions such as `filter` and `find`.",
"name": "where",
"sig": "{String: (* -> Boolean)} -> {String: *} -> Boolean",
"category": "Object"
},
{
"description": "Wrap a function inside another to allow you to make adjustments to the\nparameters, or do other processing either before the internal function is\ncalled or with its results.",
"name": "wrap",
"sig": "(a... -> b) -> ((a... -> b) -> a... -> c) -> (a... -> c)",
"category": "Function"
},
{
"description": "Creates a new list out of the two supplied by creating each possible pair\nfrom the lists.",
"name": "xprod",
"sig": "[a] -> [b] -> [[a,b]]",
"category": "List"
},
{
"description": "Creates a new list out of the two supplied by pairing up equally-positioned\nitems from both lists. The returned list is truncated to the length of the\nshorter of the two input lists.\nNote: `zip` is equivalent to `zipWith(function(a, b) { return [a, b] })`.",
"name": "zip",
"sig": "[a] -> [b] -> [[a,b]]",
"category": "List"
},
{
"description": "Creates a new object out of a list of keys and a list of values.\nKey/value pairing is truncated to the length of the shorter of the two lists.\nNote: `zipObj` is equivalent to `pipe(zipWith(pair), fromPairs)`.",
"name": "zipObj",
"sig": "[String] -> [*] -> {String: *}",
"category": "List"
},
{
"description": "Creates a new list out of the two supplied by applying the function to each\nequally-positioned pair in the lists. The returned list is truncated to the\nlength of the shorter of the two input lists.",
"name": "zipWith",
"sig": "(a,b -> c) -> [a] -> [b] -> [c]",
"category": "List"
},
{
"description": "A function that always returns `false`. Any passed in parameters are ignored.",
"name": "F",
"sig": "* -> Boolean",
"category": "Function"
},
{
"description": "A function that always returns `true`. Any passed in parameters are ignored.",
"name": "T",
"sig": "* -> Boolean",
"category": "Function"
},
{
"description": "Creates a new list iteration function from an existing one by adding two new\nparameters to its callback function: the current index, and the entire list.\n\nThis would turn, for instance, Ramda's simple `map` function into one that\nmore closely resembles `Array.prototype.map`. Note that this will only work\nfor functions in which the iteration callback function is the first\nparameter, and where the list is the last parameter. (This latter might be\nunimportant if the list parameter is not used.)",
"name": "addIndex",
"sig": "((a ... -> b) ... -> [a] -> *) -> (a ..., Int, [a] -> b) ... -> [a] -> *)",
"category": "Function"
},
{
"description": "Wraps a function of any arity (including nullary) in a function that accepts\nexactly 2 parameters. Any extraneous parameters will not be passed to the\nsupplied function.",
"name": "binary",
"sig": "(* -> c) -> (a, b -> c)",
"category": "Function"
},
{
"description": "Creates a deep copy of the value which may contain (nested) `Array`s and\n`Object`s, `Number`s, `String`s, `Boolean`s and `Date`s. `Function`s are not\ncopied, but assigned by their reference.\n\nDispatches to a `clone` method if present.",
"name": "clone",
"sig": "{*} -> {*}",
"category": "Object"
},
{
"description": "Returns a curried equivalent of the provided function. The curried function\nhas two unusual capabilities. First, its arguments needn't be provided one\nat a time. If `f` is a ternary function and `g` is `R.curry(f)`, the\nfollowing are equivalent:\n\n - `g(1)(2)(3)`\n - `g(1)(2, 3)`\n - `g(1, 2)(3)`\n - `g(1, 2, 3)`\n\nSecondly, the special placeholder value `R.__` may be used to specify\n\"gaps\", allowing partial application of any combination of arguments,\nregardless of their positions. If `g` is as above and `_` is `R.__`, the\nfollowing are equivalent:\n\n - `g(1, 2, 3)`\n - `g(_, 2, 3)(1)`\n - `g(_, _, 3)(1)(2)`\n - `g(_, _, 3)(1, 2)`\n - `g(_, 2)(1)(3)`\n - `g(_, 2)(1, 3)`\n - `g(_, 2)(_, 3)(1)`",
"name": "curry",
"sig": "(* -> a) -> (* -> a)",
"category": "Function"
},
{
"description": "Returns all but the first `n` elements of the given list, string, or\ntransducer/transformer (or object with a `drop` method).\n\nDispatches to the `drop` method of the second argument, if present.",
"name": "drop",
"sig": "Number -> [a] -> [a]",
"category": "List"
},
{
"description": "Returns a list containing all but the last `n` elements of the given `list`.",
"name": "dropLast",
"sig": "Number -> [a] -> [a]",
"category": "List"
},
{
"description": "Returns a new list containing all but last the`n` elements of a given list,\npassing each value from the right to the supplied predicate function,\nskipping elements while the predicate function returns `true`. The predicate\nfunction is passed one argument: (value)*.",
"name": "dropLastWhile",
"sig": "(a -> Boolean) -> [a] -> [a]",
"category": "List"
},
{
"description": "Returns `true` if its arguments are equivalent, `false` otherwise. Handles\ncyclical data structures.\n\nDispatches symmetrically to the `equals` methods of both arguments, if\npresent.",
"name": "equals",
"sig": "a -> b -> Boolean",
"category": "Relation"
},
{
"description": "Takes a predicate and a \"filterable\", and returns a new filterable of the\nsame type containing the members of the given filterable which satisfy the\ngiven predicate.\n\nDispatches to the `filter` method of the second argument, if present.\n\nActs as a transducer if a transformer is given in list position.",
"name": "filter",
"sig": "Filterable f => (a -> Boolean) -> f a -> f a",
"category": "List"
},
{
"description": "Returns a new list by pulling every item out of it (and all its sub-arrays)\nand putting them in a new array, depth-first.",
"name": "flatten",
"sig": "[a] -> [b]",
"category": "List"
},
{
"description": "Returns a new function much like the supplied one, except that the first two\narguments' order is reversed.",
"name": "flip",
"sig": "(a -> b -> c -> ... -> z) -> (b -> a -> c -> ... -> z)",
"category": "Function"
},
{
"description": "Splits a list into sub-lists stored in an object, based on the result of\ncalling a String-returning function on each element, and grouping the\nresults according to values returned.\n\nDispatches to the `groupBy` method of the second argument, if present.\n\nActs as a transducer if a transformer is given in list position.",
"name": "groupBy",
"sig": "(a -> String) -> [a] -> {String: [a]}",
"category": "List"
},
{
"description": "Returns the first element of the given list or string. In some libraries\nthis function is named `first`.",
"name": "head",
"sig": "[a] -> a | Undefined",
"category": "List"
},
{
"description": "Given a function that generates a key, turns a list of objects into an\nobject indexing the objects by the given key. Note that if multiple\nobjects generate the same value for the indexing key only the last value\nwill be included in the generated object.",
"name": "indexBy",
"sig": "(a -> String) -> [{k: v}] -> {k: {k: v}}",
"category": "List"
},
{
"description": "Returns all but the last element of the given list or string.",
"name": "init",
"sig": "[a] -> [a]",
"category": "List"
},
{
"description": "Combines two lists into a set (i.e. no duplicates) composed of those\nelements common to both lists. Duplication is determined according to the\nvalue returned by applying the supplied predicate to two list elements.",
"name": "intersectionWith",
"sig": "(a -> a -> Boolean) -> [*] -> [*] -> [*]",
"category": "Relation"
},
{
"description": "Transforms the items of the list with the transducer and appends the\ntransformed items to the accumulator using an appropriate iterator function\nbased on the accumulator type.\n\nThe accumulator can be an array, string, object or a transformer. Iterated\nitems will be appended to arrays and concatenated to strings. Objects will\nbe merged directly or 2-item arrays will be merged as key, value pairs.\n\nThe accumulator can also be a transformer object that provides a 2-arity\nreducing iterator function, step, 0-arity initial value function, init, and\n1-arity result extraction function result. The step function is used as the\niterator function in reduce. The result function is used to convert the\nfinal accumulator into the return type and in most cases is R.identity. The\ninit function is used to provide the initial accumulator.\n\nThe iteration is performed with R.reduce after initializing the transducer.",
"name": "into",
"sig": "a -> (b -> b) -> [c] -> a",
"category": "List"
},
{
"description": "Same as R.invertObj, however this accounts for objects with duplicate values\nby putting the values into an array.",
"name": "invert",
"sig": "{s: x} -> {x: [ s, ... ]}",
"category": "Object"
},
{
"description": "Returns a new object with the keys of the given object as values, and the\nvalues of the given object, which are coerced to strings, as keys. Note\nthat the last key found is preferred when handling the same value.",
"name": "invertObj",
"sig": "{s: x} -> {x: s}",
"category": "Object"
},
{
"description": "Returns `true` if the given value is its type's empty value; `false`\notherwise.",
"name": "isEmpty",
"sig": "a -> Boolean",
"category": "Logic"
},
{
"description": "Returns the last element of the given list or string.",
"name": "last",
"sig": "[a] -> a | Undefined",
"category": "List"
},
{
"description": "Returns the position of the last occurrence of an item in an array, or -1 if\nthe item is not included in the array. `R.equals` is used to determine\nequality.",
"name": "lastIndexOf",
"sig": "a -> [a] -> Number",
"category": "List"
},
{
"description": "Takes a function and\na [functor](https://github.com/fantasyland/fantasy-land#functor),\napplies the function to each of the functor's values, and returns\na functor of the same shape.\n\nRamda provides suitable `map` implementations for `Array` and `Object`,\nso this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.\n\nDispatches to the `map` method of the second argument, if present.\n\nActs as a transducer if a transformer is given in list position.\n\nAlso treats functions as functors and will compose them together.",
"name": "map",
"sig": "Functor f => (a -> b) -> f a -> f b",
"category": "List"
},
{
"description": "An Object-specific version of `map`. The function is applied to three\narguments: *(value, key, obj)*. If only the value is significant, use\n`map` instead.",
"name": "mapObjIndexed",
"sig": "((*, String, Object) -> *) -> Object -> Object",
"category": "Object"
},
{
"description": "Creates a new object with the own properties of the two provided objects. If\na key exists in both objects, the provided function is applied to the values\nassociated with the key in each object, with the result being used as the\nvalue associated with the key in the returned object. The key will be\nexcluded from the returned object if the resulting value is `undefined`.",
"name": "mergeWith",
"sig": "(a -> a -> a) -> {a} -> {a} -> {a}",
"category": "Object"
},
{
"description": "Takes a function `f` and a list of arguments, and returns a function `g`.\nWhen applied, `g` returns the result of applying `f` to the arguments\nprovided initially followed by the arguments provided to `g`.",
"name": "partial",
"sig": "((a, b, c, ..., n) -> x) -> [a, b, c, ...] -> ((d, e, f, ..., n) -> x)",
"category": "Function"
},
{
"description": "Takes a function `f` and a list of arguments, and returns a function `g`.\nWhen applied, `g` returns the result of applying `f` to the arguments\nprovided to `g` followed by the arguments provided initially.",
"name": "partialRight",
"sig": "((a, b, c, ..., n) -> x) -> [d, e, f, ..., n] -> ((a, b, c, ...) -> x)",
"category": "Function"
},
{
"description": "Determines whether a nested path on an object has a specific value, in\n`R.equals` terms. Most likely used to filter a list.",
"name": "pathEq",
"sig": "[String] -> * -> {String: *} -> Boolean",
"category": "Relation"
},
{
"description": "Returns a new list by plucking the same named property off all objects in\nthe list supplied.",
"name": "pluck",
"sig": "k -> [{k: v}] -> [v]",
"category": "List"
},
{
"description": "Reasonable analog to SQL `select` statement.",
"name": "project",
"sig": "[k] -> [{k: v}] -> [{k: v}]",
"category": "Object"
},
{
"description": "Returns `true` if the specified object property is equal, in `R.equals`\nterms, to the given value; `false` otherwise.",
"name": "propEq",
"sig": "String -> a -> Object -> Boolean",
"category": "Relation"
},
{
"description": "Returns `true` if the specified object property is of the given type;\n`false` otherwise.",
"name": "propIs",