---
layout: "default"
title: "split"
description: "Swift documentation for 'split': Return the result of slicing elements into sub-sequences that."
keywords: "split,func,swift,documentation"
root: "/v1.2"
---

<div class="declaration" id="func-split-s_-sliceable-r_-booleantype_-s-maxsplit_-int-allowemptyslices_-bool-isseparator_-noescape-s-generator-element-r">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-split-s_-sliceable-r_-booleantype_-s-maxsplit_-int-allowemptyslices_-bool-issepara