ZSH string manipulation: split string

Split string in a given word separator (ws)

For example _:

bougui@mantrisse ~> x="foo_1"
bougui@mantrisse ~> echo $x[(ws:_:)1]
foo
bougui@mantrisse ~> echo $x[(ws:_:)2]
1
If you want to ask me a question or leave me a message add @bougui505 in your comment.