On Wed, Apr 09, 2008 at 11:26:15AM +0200, Arvin Schnell wrote:
> 
> Hi,
> 
> I have added a new builtin to YCP (yast2-core 2.16.46) called
> sublist. More or less like substring.

Here is the documentation:

There are two version, one takes 2 args the other 3:

     * @builtin sublist
     * @short Extracts a sublist
     *
     * @description
     * Extracts a sublist of the list <tt>LIST</tt> starting at
     * <tt>OFFSET</tt>. The <tt>OFFSET</tt> starts with 0.
     *
     * @param list LIST
     * @param integer OFFSET
     * @return list
     *
     * @usage sublist ([ "a", "b", "c"], 0) -> [ "a", "b", "c" ]
     * @usage sublist ([ "a", "b", "c"], 2) -> [ "c" ]


     * @builtin sublist
     * @short Extracts a sublist
     *
     * @description
     * Extracts a sublist of the list <tt>LIST</tt> starting at
     * <tt>OFFSET</tt> with length <tt>LENGTH</tt>. The
     * <tt>OFFSET</tt>
     * starts with 0.
     *
     * @param list LIST
     * @param integer OFFSET
     * @param integer LENGTH
     * @return list
     *
     * @usage sublist ([ "a", "b", "c"], 0, 2) -> [ "a", "b" ]
     * @usage sublist ([ "a", "b", "c"], 1, 1) -> [ "b" ]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to