%PDF- %PDF-
| Direktori : /proc/thread-self/root/usr/lib/python3/dist-packages/pythran/pythonic/include/random/ |
| Current File : //proc/thread-self/root/usr/lib/python3/dist-packages/pythran/pythonic/include/random/sample.hpp |
#ifndef PYTHONIC_INCLUDE_RANDOM_SAMPLE_HPP
#define PYTHONIC_INCLUDE_RANDOM_SAMPLE_HPP
#include "pythonic/include/utils/functor.hpp"
#include "pythonic/include/random/random.hpp"
#include "pythonic/include/types/list.hpp"
PYTHONIC_NS_BEGIN
namespace random
{
template <class Iterable>
types::list<typename std::iterator_traits<
typename std::remove_cv<typename std::remove_reference<Iterable>::type>::
type::iterator>::value_type>
sample(Iterable &&s, size_t k);
DEFINE_FUNCTOR(pythonic::random, sample);
}
PYTHONIC_NS_END
#endif