Did you know ... | Search Documentation: |
Pack logtalk -- logtalk-3.85.0/docs/_sources/zlist_0.rst.txt |
.. index:: zlist .. _zlist/0:
.. rst-class:: right
object
zlist
Zipper list predicates. Zippers should be regarded as opaque terms.
| Availability:
| logtalk_load(zippers(loader))
| Author: Paulo Moura | Version: 1:0:1 | Date: 2019-03-12
| Compilation flags:
| static, context_switching_calls
| Implements:
| public
:ref:`zipperp <zipperp/0>`
| Remarks: | (none)
| Inherited public predicates: | Â :ref:`zipperp/0::apply/2` Â :ref:`zipperp/0::current/2` Â :ref:`zipperp/0::delete_all_after/2` Â :ref:`zipperp/0::delete_all_after_and_unzip/2` Â :ref:`zipperp/0::delete_all_before/2` Â :ref:`zipperp/0::delete_all_before_and_unzip/2` Â :ref:`zipperp/0::delete_and_next/2` Â :ref:`zipperp/0::delete_and_previous/2` Â :ref:`zipperp/0::delete_and_unzip/2` Â :ref:`zipperp/0::forward/2` Â :ref:`zipperp/0::forward/3` Â :ref:`zipperp/0::insert_after/3` Â :ref:`zipperp/0::insert_before/3` Â :ref:`zipperp/0::next/2` Â :ref:`zipperp/0::next/3` Â :ref:`zipperp/0::previous/2` Â :ref:`zipperp/0::previous/3` Â :ref:`zipperp/0::replace/3` Â :ref:`zipperp/0::rewind/2` Â :ref:`zipperp/0::rewind/3` Â :ref:`zipperp/0::unzip/2` Â :ref:`zipperp/0::zip/2` Â :ref:`zipperp/0::zip/3` Â
.. contents:: :local: :backlinks: top
.. index:: zip_at_index/4 .. _zlist/0::zip_at_index/4:
zip_at_index/4 ^^^^^^^^^^^^^^^^^^
Adds a zipper to a list opened at the given index and also returns the element at the index. Fails if the list is empty or the index (starting at 1) does not exist.
| Compilation flags:
| static
| Template:
| zip_at_index(Index,List,Zipper,Element)
| Mode and number of proofs:
| zip_at_index(+natural,+list,--zipper,--term)
- zero_or_one
(no local declarations; see entity ancestors if any)
(no local declarations; see entity ancestors if any)
(none)