Last active
August 29, 2015 13:55
-
-
Save egisatoshi/8780115 to your computer and use it in GitHub Desktop.
Easy access to IO from the prompt. This is a feature from Egison version 3.2.12
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
% egison | |
Egison Version 3.2.12 (C) 2011-2014 Satoshi Egi | |
http://www.egison.org | |
Welcome to Egison Interpreter! | |
> (io (each print (take 10 (map itos primes)))) | |
2 | |
3 | |
5 | |
7 | |
11 | |
13 | |
17 | |
19 | |
23 | |
29 | |
[] | |
> (io (rand 1 6)) | |
5 | |
> (io (rand 1 6)) | |
6 | |
> (io (rand 1 6)) | |
2 | |
> (io (rand 1 6)) | |
1 | |
> (io (rand 1 6)) | |
5 | |
> ^D | |
Leaving Egison Interpreter. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment