/
githubmirror
/
CS-Notes
Обзор
Документация
Войти
/
githubmirror
/
CS-Notes
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_style/prism-master/examples/prism-io.html
31 строка
563 B
CyC2018
use prism-tomorrow.css
19 дек 2018, 09:09
19 дек 2018, 09:09
e9e604e
Код
Авторство
О чём код?
<h2>Comments</h2> <pre><code>// // Foobar #!/usr/bin/env io /* multiline comment */</code></pre> <h2>Strings</h2> <pre><code>"this is a \"test\".\nThis is only a test." """this is a "test". This is only a test."""</code></pre> <h2>Numbers</h2> <pre><code>123 123.456 0.456 123e-4 123e4 123.456e-7 123.456e2 </code></pre> <h2>Full example</h2> <pre><code>"Hello, world!" println A := Object clone // creates a new, empty object named "A" factorial := method(n, if(n == 0, return 1) res := 1 Range 1 to(n) foreach(i, res = res * i) )</code></pre>