← Back
Editing: slice.hpp
#ifndef PYTHONIC_BUILTIN_SLICE_HPP #define PYTHONIC_BUILTIN_SLICE_HPP #include "pythonic/include/builtins/slice.hpp" #include "pythonic/types/slice.hpp" PYTHONIC_NS_BEGIN namespace builtins { namespace anonymous { types::contiguous_slice slice(types::none<long> stop) { return {types::none<long>(), stop}; } types::contiguous_slice slice(types::none<long> start, types::none<long> stop) { return {start, stop}; } types::slice slice(types::none<long> start, types::none<long> stop, types::none<long> step) { return {start, stop, step}; } } } PYTHONIC_NS_END #endif
Save File
Cancel