Skip to content

宿題024-関数型言語とLamda式 #24

Description

@domanthan

関数型言語とLamda式

© 2018 Gridscale Inc. http://www.gridscale.com

前振り

Pythonはマルチパラダイム言語です。関数型プログラミングを行うことは可能です。
難しい呼び方である関数型プログラミングはなんの為でしょうか。
1)形式的に証明可能性
  これは実用性はない。覚えなくでいい

2)モジュラー性
  問題を細かく分割し、定義する。
  
3)デバグやテストの簡単さ
  関数単位をテストし、正しくすれば、プログラムの品質は高くなる。

4)高階関数
  関数を作る関数ができる。
  関数をパラメータにすることできる。
  これによって、プログラムの再利用性が高まる。

5)Lambda式
  def文がなくても、関数を定義でき、呼び出すことが可能。

6 ) operator モジュール
  

要件説明

reference

宿題学習ポイント(Concept)

https://docs.python.jp/3/howto/functional.html

参考実装

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# What we learn here: xxxxx

言語リファレンス

https://docs.python.org/ja/3/reference/index.html

宿題の提出について

githubに宿題をコミットする際、必ず下記の様なフォルダ構成にしたがって欲しいです。
宿題を完成させたエビデンスファイルも合わせて出してください。できれば。

     ---- 「ご自分のgithubid]  
         ---   less001  
               -- file001.py  
               -- evidence001.txt  

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions