Home
last modified time | relevance | path

Searched refs:curry (Results 1 – 25 of 28) sorted by relevance

12

/third_party/boost/libs/hana/example/functional/
Dcurry.cpp16 BOOST_HANA_CONSTEXPR_CHECK(hana::curry<3>(add)(1)(2)(3) == 1 + 2 + 3); in main()
17 BOOST_HANA_CONSTEXPR_CHECK(hana::curry<3>(add)(1)(2, 3) == hana::curry<3>(add)(1)(2)(3)); in main()
18 BOOST_HANA_CONSTEXPR_CHECK(hana::curry<3>(add)(1, 2, 3) == hana::curry<3>(add)(1)(2)(3)); in main()
25 BOOST_HANA_CONSTEXPR_CHECK(hana::curry<0>(two)() == two()); in main()
/third_party/boost/libs/hana/test/
Dfunctional.cpp189 hana::curry<0>(f)(), in main()
194 hana::curry<1>(f)(ct_eq<1>{}), in main()
199 hana::curry<2>(f)(ct_eq<1>{})(ct_eq<2>{}), in main()
203 hana::curry<2>(f)(ct_eq<1>{}, ct_eq<2>{}), in main()
208 hana::curry<3>(f)(ct_eq<1>{})(ct_eq<2>{})(ct_eq<3>{}), in main()
212 hana::curry<3>(f)(ct_eq<1>{})(ct_eq<2>{}, ct_eq<3>{}), in main()
216 hana::curry<3>(f)(ct_eq<1>{}, ct_eq<2>{})(ct_eq<3>{}), in main()
220 hana::curry<3>(f)(ct_eq<1>{}, ct_eq<2>{}, ct_eq<3>{}), in main()
229 hana::curry<0>(hana::curry<0>(f))(), in main()
234 hana::curry<1>(hana::curry<1>(f))(ct_eq<1>{}), in main()
[all …]
/third_party/typescript/tests/cases/conformance/types/tuple/
DvariadicTuples1.ts302 function curry<T extends unknown[], U extends unknown[], R>(f: (...args: [...T, ...U]) => R, ...a: … function
308 const c0 = curry(fn1); // (a: number, b: string, c: boolean, d: string[]) => number
309 const c1 = curry(fn1, 1); // (b: string, c: boolean, d: string[]) => number
310 const c2 = curry(fn1, 1, 'abc'); // (c: boolean, d: string[]) => number
311 const c3 = curry(fn1, 1, 'abc', true); // (d: string[]) => number
312 const c4 = curry(fn1, 1, 'abc', true, ['x', 'y']); // () => number
316 const c10 = curry(fn2); // (x: number, b: boolean, ...args: string[]) => number
317 const c11 = curry(fn2, 1); // (b: boolean, ...args: string[]) => number
318 const c12 = curry(fn2, 1, true); // (...args: string[]) => number
319 const c13 = curry(fn2, 1, true, 'abc', 'def'); // (...args: string[]) => number
[all …]
/third_party/typescript/tests/baselines/reference/
DvariadicTuples1.js300 function curry<T extends unknown[], U extends unknown[], R>(f: (...args: [...T, ...U]) => R, ...a: …
306 const c0 = curry(fn1); // (a: number, b: string, c: boolean, d: string[]) => number
307 const c1 = curry(fn1, 1); // (b: string, c: boolean, d: string[]) => number
308 const c2 = curry(fn1, 1, 'abc'); // (c: boolean, d: string[]) => number
309 const c3 = curry(fn1, 1, 'abc', true); // (d: string[]) => number
310 const c4 = curry(fn1, 1, 'abc', true, ['x', 'y']); // () => number
314 const c10 = curry(fn2); // (x: number, b: boolean, ...args: string[]) => number
315 const c11 = curry(fn2, 1); // (b: boolean, ...args: string[]) => number
316 const c12 = curry(fn2, 1, true); // (...args: string[]) => number
317 const c13 = curry(fn2, 1, true, 'abc', 'def'); // (...args: string[]) => number
[all …]
DvariadicTuples1.types1000 function curry<T extends unknown[], U extends unknown[], R>(f: (...args: [...T, ...U]) => R, ...a: …
1001 >curry : <T extends unknown[], U extends unknown[], R>(f: (...args: [...T, ...U]) => R, ...a: T) =>…
1026 const c0 = curry(fn1); // (a: number, b: string, c: boolean, d: string[]) => number
1028 >curry(fn1) : (a: number, b: string, c: boolean, d: string[]) => number
1029 >curry : <T extends unknown[], U extends unknown[], R>(f: (...args: [...T, ...U]) => R, ...a: T) =>…
1032 const c1 = curry(fn1, 1); // (b: string, c: boolean, d: string[]) => number
1034 >curry(fn1, 1) : (b: string, c: boolean, d: string[]) => number
1035 >curry : <T extends unknown[], U extends unknown[], R>(f: (...args: [...T, ...U]) => R, ...a: T) =>…
1039 const c2 = curry(fn1, 1, 'abc'); // (c: boolean, d: string[]) => number
1041 >curry(fn1, 1, 'abc') : (c: boolean, d: string[]) => number
[all …]
DvariadicTuples1.symbols1011 function curry<T extends unknown[], U extends unknown[], R>(f: (...args: [...T, ...U]) => R, ...a: …
1012 >curry : Symbol(curry, Decl(variadicTuples1.ts, 294, 33))
1039 const c0 = curry(fn1); // (a: number, b: string, c: boolean, d: string[]) => number
1041 >curry : Symbol(curry, Decl(variadicTuples1.ts, 294, 33))
1044 const c1 = curry(fn1, 1); // (b: string, c: boolean, d: string[]) => number
1046 >curry : Symbol(curry, Decl(variadicTuples1.ts, 294, 33))
1049 const c2 = curry(fn1, 1, 'abc'); // (c: boolean, d: string[]) => number
1051 >curry : Symbol(curry, Decl(variadicTuples1.ts, 294, 33))
1054 const c3 = curry(fn1, 1, 'abc', true); // (d: string[]) => number
1056 >curry : Symbol(curry, Decl(variadicTuples1.ts, 294, 33))
[all …]
DvariadicTuples1.errors.txt409 …function curry<T extends unknown[], U extends unknown[], R>(f: (...args: [...T, ...U]) => R, ...a:…
415 const c0 = curry(fn1); // (a: number, b: string, c: boolean, d: string[]) => number
416 const c1 = curry(fn1, 1); // (b: string, c: boolean, d: string[]) => number
417 const c2 = curry(fn1, 1, 'abc'); // (c: boolean, d: string[]) => number
418 const c3 = curry(fn1, 1, 'abc', true); // (d: string[]) => number
419 const c4 = curry(fn1, 1, 'abc', true, ['x', 'y']); // () => number
423 const c10 = curry(fn2); // (x: number, b: boolean, ...args: string[]) => number
424 const c11 = curry(fn2, 1); // (b: boolean, ...args: string[]) => number
425 const c12 = curry(fn2, 1, true); // (...args: string[]) => number
426 const c13 = curry(fn2, 1, true, 'abc', 'def'); // (...args: string[]) => number
[all …]
DramdaToolsNoInfinite.types3 // https://medium.freecodecamp.org/typescript-curry-ramda-types-f747e99744ab
4 // https://github.com/pirix-gh/medium/blob/master/types-curry-ramda/src/index.ts
DramdaToolsNoInfinite.symbols3 // https://medium.freecodecamp.org/typescript-curry-ramda-types-f747e99744ab
4 // https://github.com/pirix-gh/medium/blob/master/types-curry-ramda/src/index.ts
/third_party/boost/libs/hana/include/boost/hana/functional/
Dcurry.hpp88 constexpr auto curry = [](auto&& f) { in __anon387589350102() variable
112 constexpr make_curry_t<n> curry{};
/third_party/boost/boost/hana/functional/
Dcurry.hpp88 constexpr auto curry = [](auto&& f) { in __anonc6faef420102() variable
112 constexpr make_curry_t<n> curry{};
/third_party/boost/libs/hana/example/
Dpermutations.cpp15 BOOST_HANA_CONSTEXPR_LAMBDA auto is_permutation_of = hana::curry<2>([](auto xs, auto perm) { in __anon765d7d6f0102()
/third_party/boost/libs/hana/test/issues/
Dgithub_260.cpp21 std::make_tuple(hana::curry<2>(DefaultConstructible{})(DefaultConstructible{})) in main()
/third_party/boost/libs/hana/test/_include/laws/
Dapplicative.hpp46 return hana::transform(xs, hana::curry<2>(test::_injection<0>{})); in TestApplicative()
51 return hana::transform(xs, hana::curry<2>(test::_injection<1>{})); in TestApplicative()
Dfoldable.hpp283 auto fp = hana::curry<2>(hana::flip(f));
323 auto fp = hana::curry<2>(hana::flip(f));
359 auto fp = hana::curry<2>(f);
401 auto fp = hana::curry<2>(f);
/third_party/boost/libs/metaparse/example/meta_hs/
Dbuilder.hpp54 boost::mpl::pair<Name, ast::value<BOOST_PP_CAT(curry, n)<F> > > \
Dcurry.hpp93 struct BOOST_PP_CAT(curry, n) : \
/third_party/boost/boost/hana/
Dap.hpp60 hana::transform(static_cast<F&&>(f), hana::curry<sizeof...(xs)>), in operator ()()
Dmonadic_fold_left.hpp109 hana::curry<3>(hana::partial( in apply()
Dmonadic_fold_right.hpp108 hana::curry<3>(hana::partial( in apply()
/third_party/boost/libs/hana/include/boost/hana/
Dap.hpp60 hana::transform(static_cast<F&&>(f), hana::curry<sizeof...(xs)>), in operator ()()
Dmonadic_fold_left.hpp109 hana::curry<3>(hana::partial( in apply()
Dmonadic_fold_right.hpp108 hana::curry<3>(hana::partial( in apply()
/third_party/typescript/tests/baselines/reference/user/
Dlodash.log272 node_modules/lodash/curry.js(47,29): error TS1016: A required parameter cannot follow an optional p…
273 node_modules/lodash/curry.js(50,10): error TS2339: Property 'placeholder' does not exist on type 'F…
307 …tion' has no properties in common with type '{ cap?: boolean | undefined; curry?: boolean | undefi…
311 …' does not exist on type 'Function | { ary: any; assign: any; clone: any; curry: any; forEach: any…
313 …' does not exist on type 'Function | { ary: any; assign: any; clone: any; curry: any; forEach: any…
315 …' does not exist on type 'Function | { ary: any; assign: any; clone: any; curry: any; forEach: any…
317 …(186,23): error TS2339: Property 'curry' does not exist on type 'Function | { ary: any; assign: an…
318 Property 'curry' does not exist on type 'Function'.
319 …' does not exist on type 'Function | { ary: any; assign: any; clone: any; curry: any; forEach: any…
321 …' does not exist on type 'Function | { ary: any; assign: any; clone: any; curry: any; forEach: any…
[all …]
/third_party/python/Lib/test/
Dtest_inspect.py1521 def curry(func, arg1): function
1539 greater_than_five = curry(less_than, 5)

12