-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
112 changed files
with
10,838 additions
and
9,096 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | ||
<meta name="viewport" content="initial-scale=1.0" /> | ||
|
||
<style type="text/css">.koka .plaincode, .koka a.pp .pc { display: none; } .koka a.pp { color: inherit; text-decoration: none; }</style> | ||
<link rel="stylesheet" type="text/css" href="styles/koka.css" /> | ||
|
||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Nunito:400,400italic,700,700italic" /> | ||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,500,700,400italic" /> | ||
|
||
<title>std/core/console documentation</title> | ||
</head> | ||
|
||
<body class="koka doc body madoko"> | ||
<h1><a class="link" href="https://koka-lang.github.io/koka/doc/std_core_console-source.html"><span class="mo">std<span class="fslash">/</span>core<span class="fslash">/</span>console</span></a><a class="link" href="toc.html"><span class="toc-link">▲toc</span></a></h1> | ||
<div class="toc code"><ul class="toc"><li><a class="link" href="#type_space_console"><span class="kw">effect</span> <span class="tp">console</span></a> | ||
</li><li> </li><li><a class="link" href="#show_fs_print"><span class="kw">fun</span> <span class="lq">show<span class="fslash">/</span></span>print</a></li><li><a class="link" href="#show_fs_println"><span class="kw">fun</span> <span class="lq">show<span class="fslash">/</span></span>println</a></li><li><a class="link" href="#string_fs_print"><span class="kw">fun</span> <span class="lq">string<span class="fslash">/</span></span>print</a></li><li><a class="link" href="#string_fs_println"><span class="kw">fun</span> <span class="lq">string<span class="fslash">/</span></span>println</a></li></ul></div> | ||
<div class="doc koka comment"> | ||
<h1 class="synopsis">Standard output to the console. | ||
</h1> | ||
|
||
|
||
|
||
<p class="p noindent">. | ||
</p></div> | ||
<div class="decl" id="type_space_console"><div class="header code"><span class="def"><span class="kw">effect</span> <span class="tp"><a class="pp" href="https://koka-lang.github.io/koka/doc/std_core_console-source.html#type_space_console"><span class="tp">console</span><span class="pc"><span class="mo">std<span class="fslash">/</span>core<span class="fslash">/</span>console<span class="fslash last">/</span></span>console: <span class="co">X</span></span></a></span></span><span class="tp"></span></div><div class="doc koka comment"> | ||
|
||
<p class="p noindent">The console effect signifies that a function may write to the console. | ||
</p></div></div> | ||
<div class="decl" id="show_fs_print"><div class="header code"><span class="def"><span class="kw">fun</span> <a class="link" href="std_core_console-source.html#show_fs_print"><span class="lq">show<span class="fslash">/</span></span>print</a></span>( <span class="tp tpp">x</span> <span class="tp sp">:</span> <span class="tp tv">a</span>, <span class="tp tpp"><span class="lq">?</span>show</span> <span class="tp sp">:</span> <span class="tp sp">(</span><span class="tp tv">a</span><span class="tp sp">)</span> <span class="tp kw op">-></span> <a class="pp" href="https://koka-lang.github.io/koka/doc/std_core_types.html#type_space_string"><span class="tp">string</span><span class="pc"><span class="mo">std<span class="fslash">/</span>core<span class="fslash">/</span>types<span class="fslash last">/</span></span>string: <span class="co">V</span></span></a> ) <span class="tp sp">:</span> <a class="pp" href="#type_space_console"><span class="tp">console</span><span class="pc"><span class="mo">std<span class="fslash">/</span>core<span class="fslash">/</span>console<span class="fslash last">/</span></span>console: <span class="co">X</span></span></a> <span class="tp sp">(</span><span class="tp sp">)</span></div><div class="doc koka comment"> | ||
|
||
<p class="p noindent">Print a value that has a <code class="koka">show</code> function. | ||
</p></div></div> | ||
<div class="decl" id="show_fs_println"><div class="header code"><span class="def"><span class="kw">fun</span> <a class="link" href="std_core_console-source.html#show_fs_println"><span class="lq">show<span class="fslash">/</span></span>println</a></span>( <span class="tp tpp">x</span> <span class="tp sp">:</span> <span class="tp tv">a</span>, <span class="tp tpp"><span class="lq">?</span>show</span> <span class="tp sp">:</span> <span class="tp sp">(</span><span class="tp tv">a</span><span class="tp sp">)</span> <span class="tp kw op">-></span> <a class="pp" href="https://koka-lang.github.io/koka/doc/std_core_types.html#type_space_string"><span class="tp">string</span><span class="pc"><span class="mo">std<span class="fslash">/</span>core<span class="fslash">/</span>types<span class="fslash last">/</span></span>string: <span class="co">V</span></span></a> ) <span class="tp sp">:</span> <a class="pp" href="#type_space_console"><span class="tp">console</span><span class="pc"><span class="mo">std<span class="fslash">/</span>core<span class="fslash">/</span>console<span class="fslash last">/</span></span>console: <span class="co">X</span></span></a> <span class="tp sp">(</span><span class="tp sp">)</span></div><div class="doc koka comment"> | ||
|
||
<p class="p noindent">Print a value that has a <code class="koka">show</code> function, including a final newline character. | ||
</p></div></div> | ||
<div class="decl" id="string_fs_print"><div class="header code"><span class="def"><span class="kw">fun</span> <a class="link" href="std_core_console-source.html#string_fs_print"><span class="lq">string<span class="fslash">/</span></span>print</a></span>( <span class="tp tpp">s</span> <span class="tp sp">:</span> <a class="pp" href="https://koka-lang.github.io/koka/doc/std_core_types.html#type_space_string"><span class="tp">string</span><span class="pc"><span class="mo">std<span class="fslash">/</span>core<span class="fslash">/</span>types<span class="fslash last">/</span></span>string: <span class="co">V</span></span></a> ) <span class="tp sp">:</span> <a class="pp" href="#type_space_console"><span class="tp">console</span><span class="pc"><span class="mo">std<span class="fslash">/</span>core<span class="fslash">/</span>console<span class="fslash last">/</span></span>console: <span class="co">X</span></span></a> <span class="tp sp">(</span><span class="tp sp">)</span></div><div class="doc koka comment"> | ||
|
||
<p class="p noindent">Print a string to the console. | ||
</p></div></div> | ||
<div class="decl" id="string_fs_println"><div class="header code"><span class="def"><span class="kw">fun</span> <a class="link" href="std_core_console-source.html#string_fs_println"><span class="lq">string<span class="fslash">/</span></span>println</a></span>( <span class="tp tpp">s</span> <span class="tp sp">:</span> <a class="pp" href="https://koka-lang.github.io/koka/doc/std_core_types.html#type_space_string"><span class="tp">string</span><span class="pc"><span class="mo">std<span class="fslash">/</span>core<span class="fslash">/</span>types<span class="fslash last">/</span></span>string: <span class="co">V</span></span></a> ) <span class="tp sp">:</span> <a class="pp" href="#type_space_console"><span class="tp">console</span><span class="pc"><span class="mo">std<span class="fslash">/</span>core<span class="fslash">/</span>console<span class="fslash last">/</span></span>console: <span class="co">X</span></span></a> <span class="tp sp">(</span><span class="tp sp">)</span></div><div class="doc koka comment"> | ||
|
||
<p class="p noindent">Print a string to the console, including a final newline character. | ||
</p></div></div> | ||
<div class="decl" id="-private-imports"><div class="header code"><span class="def"><span class="kw">private import</span> <span class="code"><a class="pp" href="https://koka-lang.github.io/koka/doc/std_core_types.html#_null_"><span class="mo">std<span class="fslash">/</span>core<span class="fslash">/</span>types</span><span class="pc"><span class="mo">std<span class="fslash">/</span>core<span class="fslash">/</span>types</span></span></a></span></span></div></div> | ||
</body> | ||
</html> | ||
|
||
<span data-line=""></span> |
Oops, something went wrong.