Skip to content

How to have a list of stings as a function schema argument? #807

Answered by ikitommi
Tillaert asked this question in Q&A
Discussion options

You must be logged in to vote

... [:+ :string] is a "sequence of strings", but nested sequence schemas are inlined. You can escape the inlining also with using a non-sequence schema, :schema being the simplest way to do that:

;; int and 1+ strings
[:cat :int [:+ :string]]

;; int and sequence of 1+ strings
[:cat :int [:schema [:+ :string]]]

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Tillaert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants