pike.git / lib / modules / __builtin.pmod / Range.pike

version» Context lines:

pike.git/lib/modules/__builtin.pmod/Range.pike:5:   //! and upper boundaries that implement the @expr{`<@} lfun.   //! @note   //! Can only contain a single contiguous range.      //! The lower inclusive boundary.   mixed from;      //! The upper exclusive boundary.   mixed till;    + array(mixed) _encode() { +  return ({from, till}); + } +  + void _decode(array(mixed) x) { +  from = x[0]; +  till = x[1]; + } +    //! @param from   //! Lower inclusive boundary for the range. Specify no lower-boundary   //! by filling in @expr{-Math.inf@}.   //! @param till   //! Upper exclusive boundary for the range. Specify no upper-boundary   //! by filling in @expr{Math.inf@}.   //! @seealso   //! [Math.inf]   protected variant void create(mixed from, mixed till) {    this::from = from;