-- SPDX-FileCopyrightText: Chris Pressey, the creator of this work, has dedicated it to the public domain. -- For more information, please refer to -- SPDX-License-Identifier: Unlicense module Language.Turmac.Utils where intercalate i [] = [] intercalate i [last] = last intercalate i (first:rest) = first ++ i ++ (intercalate i rest)