Skip to content
Snippets Groups Projects
Commit 67188590 authored by Brady James Garvin's avatar Brady James Garvin
Browse files

Flavor Markdown.

parent 84f194d4
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ Postcondition: ...@@ -16,7 +16,7 @@ Postcondition:
(If `p` is a post, then `p.tags` gives its tags as a set of strings.) (If `p` is a post, then `p.tags` gives its tags as a set of strings.)
``` ```js
function filter(posts, tag) { function filter(posts, tag) {
// … // …
} }
...@@ -51,7 +51,7 @@ green, and blue.) ...@@ -51,7 +51,7 @@ green, and blue.)
(If `g` is a graph, then `g.vertices` gives its vertices as a set.) (If `g` is a graph, then `g.vertices` gives its vertices as a set.)
``` ```js
function color(graph) { function color(graph) {
// … // …
for (const coloring of mappings(graph.vertices, PALETTE)) { for (const coloring of mappings(graph.vertices, PALETTE)) {
...@@ -85,7 +85,7 @@ of vertex pairs.) ...@@ -85,7 +85,7 @@ of vertex pairs.)
(The parameter `coloring` is assumed to hold a dictionary that maps (The parameter `coloring` is assumed to hold a dictionary that maps
vertices to colors.) vertices to colors.)
``` ```js
function isValidColoring(graph, coloring) { function isValidColoring(graph, coloring) {
// … // …
} }
...@@ -112,7 +112,7 @@ Sad path: ...@@ -112,7 +112,7 @@ Sad path:
### JavaScript ### JavaScript
``` ```js
function knapsack(items, getWeight, weightLimit, getValue) { function knapsack(items, getWeight, weightLimit, getValue) {
// … // …
for (const option of options(items, getWeight, weightLimit)) { for (const option of options(items, getWeight, weightLimit)) {
...@@ -139,7 +139,7 @@ Postcondition: ...@@ -139,7 +139,7 @@ Postcondition:
#### JavaScript #### JavaScript
``` ```js
function options(items, getWeight, weightLimit) { function options(items, getWeight, weightLimit) {
// … // …
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment