this repo is setup to store some files to test require.toUrl
to run start a web browser at the root of this repo, for example:
cd 3246403
python -m SimpleHTTPServer
'''read a csv file representing a table and write a restructured text simple | |
table''' | |
import sys | |
import csv | |
def get_out(out=None): | |
''' | |
return a file like object from different kinds of values | |
None: returns stdout | |
string: returns open(path) |
; display the message | |
(display "hello world\n") |
; ask for the name | |
(display "name? ") | |
; bind the input to a variable | |
($let ((name (read-line))) | |
; build the message and bind it t a variable | |
($let ((message (string-append "Hello " name "!\n"))) | |
; display the message | |
(display message))) |
; define a function to ask for a name | |
($define! ask-name ($lambda () | |
($sequence | |
(display "name? ") | |
(read-line)))) | |
; define a function to build the message | |
($define! build-message ($lambda (name) | |
(string-append "Hello " name "!\n"))) |
; define a function to ask for a name | |
($define! ask-name ($lambda () | |
($sequence | |
(display "name? ") | |
(read-line)))) | |
; define a function to build the message | |
($define! build-message ($lambda (name) | |
(string-append "Hello " name "!\n"))) |
; ask for the name | |
(display "name? ") | |
; display the message | |
(display (string-append "Hello " (read-line) "!\n")) |