[
    {
        "name": "RollingList",
        "comment": " Module description\n\n\n## Functions\n\n@docs fromList, roll, rollBack, current, toList\n\n\n## Definition\n\n@docs RollingList\n\n",
        "unions": [],
        "aliases": [
            {
                "name": "RollingList",
                "comment": " The rolling list type.\n",
                "args": [
                    "a"
                ],
                "type": "{ previous : List a, next : List a }"
            }
        ],
        "values": [
            {
                "name": "current",
                "comment": " Returns the currently selected element in the list\n\n    >>> current (fromList [1,2,3])\n    Just 1\n\n",
                "type": "RollingList a -> Maybe a"
            },
            {
                "name": "fromList",
                "comment": " Create a rolling list from a normal list\n\n    >>> toList (fromList [1,2,3])\n    [1,2,3]\n\n",
                "type": "List a -> RollingList a"
            },
            {
                "name": "roll",
                "comment": " Return a New RollingList, with the current element set to the next element\n\n    >>> toList (roll (fromList [1,2,3]))\n    [2,3,1]\n\n    >>> current (roll (fromList [1,2,3]))\n    Just 2\n\n",
                "type": "RollingList a -> RollingList a"
            },
            {
                "name": "rollBack",
                "comment": " Return a New RollingList, with the current element set to the previous element\n\n    >>> toList (roll (fromList [1,2,3]))\n    [3,1,2]\n\n    >>> current (roll (fromList [1,2,3]))\n    Just 3\n\n",
                "type": "RollingList a -> RollingList a"
            },
            {
                "name": "toList",
                "comment": " Create a normal list from a rolling list\n\n    >>> toList (fromList [1,2])\n    [1,2]\n\n",
                "type": "RollingList a -> List a"
            }
        ],
        "binops": []
    }
]