okami.mom/glamour

git clone https://git.nkp.pet/okami.mom/glamour

Christian Rochadocs: improve haskell example (thanks @imcotton)1399ca3

main
1.5 KiB67 linesraw

Glamour

A casual introduction. 你好世界!

Let’s talk about artichokes

The artichoke is mentioned as a garden plant in the 8th century BC by Homer and Hesiod. The naturally occurring variant of the artichoke, the cardoon, which is native to the Mediterranean area, also has records of use as a food among the ancient Greeks and Romans. Pliny the Elder mentioned growing of carduus in Carthage and Cordoba.

He holds him with a skinny hand, ‘There was a ship,’ quoth he. ‘Hold off! unhand me, grey-beard loon!’ An artichoke, dropt he.

--Samuel Taylor Coleridge, The Rime of the Ancient Mariner

Other foods worth mentioning

  1. Carrots
  2. Celery
  3. Tacos
    • Soft
    • Hard
  4. Cucumber

Things to eat today

  • Carrots
  • Ramen
  • Currywurst

Power levels of the aforementioned foods

NamePowerComment
Carrots9001It’s over 9000?!
Ramen9002Also over 9000?!
Currywurst10000What?!

Currying Artichokes

Here’s a bit of code in Haskell, because we are fancy. Remember that to compile Haskell you’ll need ghc.

module Main where

import Data.List (intercalate)

hello :: String -> String
hello s = "Hello, " <> s <> "."

main :: IO ()
main = putStrLn
     $ intercalate "\n"
     $ hello <$> [ "artichoke", "alcachofa" ]

Alcachofa, if you were wondering, is artichoke in Spanish.

1Glamour
2=======
3
4A casual introduction. 你好世界!
5
6## Let’s talk about artichokes
7
8The _artichoke_ is mentioned as a garden plant in the 8th century BC by Homer
9**and** Hesiod. The naturally occurring variant of the artichoke, the cardoon,
10which is native to the Mediterranean area, also has records of use as a food
11among the ancient Greeks and Romans. Pliny the Elder mentioned growing of
12_carduus_ in Carthage and Cordoba.
13
14> He holds him with a skinny hand,
15> ‘There was a ship,’ quoth he.
16> ‘Hold off! unhand me, grey-beard loon!’
17> An artichoke, dropt he.
18
19--Samuel Taylor Coleridge, [The Rime of the Ancient Mariner][rime]
20
21[rime]: https://poetryfoundation.org/poems/43997/
22
23## Other foods worth mentioning
24
251. Carrots
261. Celery
271. Tacos
28    * Soft
29    * Hard
301. Cucumber
31
32## Things to eat today
33
34* [x] Carrots
35* [x] Ramen
36* [ ] Currywurst
37
38### Power levels of the aforementioned foods
39
40| Name       | Power | Comment          |
41| ---        | ---   | ---              |
42| Carrots    | 9001  | It’s over 9000?! |
43| Ramen      | 9002  | Also over 9000?! |
44| Currywurst | 10000 | What?!           |
45
46## Currying Artichokes
47
48Here’s a bit of code in [Haskell](https://haskell.org), because we are fancy.
49Remember that to compile Haskell you’ll need `ghc`.
50
51```haskell
52module Main where
53
54import Data.List (intercalate)
55
56hello :: String -> String
57hello s = "Hello, " <> s <> "."
58
59main :: IO ()
60main = putStrLn
61     $ intercalate "\n"
62     $ hello <$> [ "artichoke", "alcachofa" ]
63```
64
65***
66
67_Alcachofa_, if you were wondering, is artichoke in Spanish.