Skip to content

Commit

Permalink
rename to_object to from_items
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Stewmon committed Sep 15, 2016
1 parent b1d1cb4 commit 697deb5
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions docs/specification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1324,6 +1324,31 @@ If you would like a specific order, consider using the ``sort_by`` function.
- ``[["z", "last"], ["b", "second"]]``


.. _func-from-items:

from_items
---------

::

object from_items(array[array[any]] $arg)

Returns an object from the provided array of key value pairs. This function
is the inverse of :ref:`func-items`.

.. cssclass:: table

.. list-table:: Examples
:header-rows: 1

* - Given
- Expression
- Result
* - ``[["one", 1], ["two", 2]]``
- ``from_items(@)``
- ``{"one": 1, "two": 2}``


.. _func-join:

join
Expand Down Expand Up @@ -1884,31 +1909,6 @@ to_array
- ``[{"foo": "bar"}]``


.. _func-to-object:

to_object
---------

::

object to_object(array[array[any]] $arg)

Returns an object from the provided array of key value pairs. This function
is the inverse of :ref:`func-items`.

.. cssclass:: table

.. list-table:: Examples
:header-rows: 1

* - Given
- Expression
- Result
* - ``[["one", 1], ["two", 2]]``
- ``to_object(@)``
- ``{"one": 1, "two": 2}``


.. _func-to-string:


Expand Down

0 comments on commit 697deb5

Please sign in to comment.