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

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.
主站蜘蛛池模板: 安阳县| 茂名市| 榆中县| 仁寿县| 乐至县| 蒙自县| 洞口县| 长子县| 德钦县| 小金县| 会宁县| 开原市| 芦山县| 育儿| 凌云县| 田东县| 青海省| 天气| 昭平县| 泌阳县| 修武县| 江津市| 时尚| 临桂县| 呼玛县| 澎湖县| 衡阳市| 红河县| 彰武县| 偃师市| 米泉市| 盖州市| 丰县| 荣成市| 营山县| 莫力| 江华| 陆川县| 长顺县| 澄迈县| 武平县|