lib/core/stream: LineIterator use CachedIterator
[nit.git] / examples / rosettacode / here_document.nit
1 #!/usr/bin/env nit
2 #
3 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # This program is public domain
5
6 # Task: Here_document
7 # SEE: <http://rosettacode.org/wiki/Here_document>
8 module here_document
9
10 print """
11 A here document (or "heredoc") is a way of specifying a text block,
12 preserving the line breaks,
13 indentation and other whitespace within the text.
14
15 Nit borrows the triple-quoted string syntax from Python.
16 """