Skip to content
Discussion options

You must be logged in to vote

Hi Colin,

.splitText() allows to specify a closure, so something like this should to the trick:

Channel
 .fromPath(params.fai)
 .splitText( each:{ it.split().first() } )
 .view()

Cheers,
Patrick

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@colindaven
Comment options

Answer selected by colindaven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants