mirror of
https://github.com/BlackMATov/kari.hpp.git
synced 2025-12-16 16:07:08 +07:00
Little repository structure refactoring: rename LICENSE to LICENSE.md
This commit is contained in:
14
README.md
14
README.md
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
[circleci]: https://circleci.com/gh/BlackMATov/kari.hpp
|
[circleci]: https://circleci.com/gh/BlackMATov/kari.hpp
|
||||||
[appveyor]: https://ci.appveyor.com/project/BlackMATov/kari-hpp-arict
|
[appveyor]: https://ci.appveyor.com/project/BlackMATov/kari-hpp-arict
|
||||||
[license]: https://github.com/BlackMATov/kari.hpp/blob/master/LICENSE
|
[license]: https://github.com/BlackMATov/kari.hpp/blob/master/LICENSE.md
|
||||||
[godbolt]: https://godbolt.org/g/XPBgjY
|
[godbolt]: https://godbolt.org/g/XPBgjY
|
||||||
[wandbox]: https://wandbox.org/permlink/l2PeuYUx2K2Yqbwj
|
[wandbox]: https://wandbox.org/permlink/l2PeuYUx2K2Yqbwj
|
||||||
|
|
||||||
@@ -88,19 +88,19 @@ std::cout << c0 << "," << c1 << "," << c2 << std::endl;
|
|||||||
namespace kari {
|
namespace kari {
|
||||||
template < typename F, typename... Args >
|
template < typename F, typename... Args >
|
||||||
constexpr decltype(auto) curry(F&& f, Args&&... args) const;
|
constexpr decltype(auto) curry(F&& f, Args&&... args) const;
|
||||||
|
|
||||||
template < typename F, typename... Args >
|
template < typename F, typename... Args >
|
||||||
constexpr decltype(auto) curryV(F&& f, Args&&... args) const;
|
constexpr decltype(auto) curryV(F&& f, Args&&... args) const;
|
||||||
|
|
||||||
template < std::size_t N, typename F, typename... Args >
|
template < std::size_t N, typename F, typename... Args >
|
||||||
constexpr decltype(auto) curryN(F&& f, Args&&... args) const;
|
constexpr decltype(auto) curryN(F&& f, Args&&... args) const;
|
||||||
|
|
||||||
template < typename F >
|
template < typename F >
|
||||||
struct is_curried;
|
struct is_curried;
|
||||||
|
|
||||||
template < typename F >
|
template < typename F >
|
||||||
constexpr bool is_curried_v = is_curried<F>::value;
|
constexpr bool is_curried_v = is_curried<F>::value;
|
||||||
|
|
||||||
template < std::size_t N, typename F, typename... Args >
|
template < std::size_t N, typename F, typename... Args >
|
||||||
struct curry_t {
|
struct curry_t {
|
||||||
template < typename... As >
|
template < typename... As >
|
||||||
@@ -232,4 +232,4 @@ auto r1 = ((_+2)*_)(_*2) * 10;
|
|||||||
|
|
||||||
// output: 24,22
|
// output: 24,22
|
||||||
std::cout << r0, << "," << r1 << std::endl;
|
std::cout << r0, << "," << r1 << std::endl;
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user