Editor
90
edits
Line 34: | Line 34: | ||
Examples of how a channel program would be written by a person in either a procedural or functional language are below: | Examples of how a channel program would be written by a person in either a procedural or functional language are below: | ||
{| border="1" style="border-collapse:collapse; text-align: center" | |||
|- | |||
| '''Procedural (Python-esque)''' || '''Functional (Scheme-esque)''' | |||
|- | |||
| fs = argv[0] || ("""iterate_snapshots""" fs snap | |||
| for snap in fs."""snapshots"""(): || ("""destroy_snapshot""" snap)) | |||
| snap."""destroy"""() || | |||
|- | |||
|} |