官术网_书友最值得收藏!

Real-life imperative example

In order to better understand the concept of the imperative programming paradigm, let's take the following example: you're meeting a friend for a hackathon in your town, but he has no idea how to get there. We'll explain to him how to get there in an imperative way:

  1. From the Central Station, take tram 1.
  2. Get off the tram at the third station.
  3. Walk to the right, toward Sixth Avenue, until you reach the third junction.
主站蜘蛛池模板: 冕宁县| 徐水县| 濉溪县| 巴楚县| 英德市| 昂仁县| 宁远县| 丰镇市| 库车县| 承德市| 尖扎县| 南乐县| 和顺县| 南开区| 普安县| 大同县| 霍山县| 仁化县| 中卫市| 会东县| 和平区| 桦川县| 鄢陵县| 久治县| 望奎县| 班玛县| 祥云县| 绿春县| 汶川县| 连州市| 郸城县| 竹山县| 佛学| 环江| 禹州市| 永吉县| 库车县| 石屏县| 潞城市| 两当县| 福鼎市|