タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

lambdaに関するyuya_prestoのブックマーク (2)

  • Introducing Apex

    Apex is a small program written in Go for managing “serverless” architecture via AWS Lambda, allowing you to focus on code instead of infrastructure. I started Apex because I’ve been working on a number of product ideas as a solo engineer, I can’t afford to spend time managing and maintaining machines if I’m going to have a successful product as a single person team. I love Amazon’s Elastic Contai

    Introducing Apex
  • [Python][お勉強] Python入門(27) - lambda式

    メモ代わり。てきとーに。 いや、ですからてきとーですって。 2年前ぐらいにPythonあたりでメールくれた方、ごめんなさい。メール紛失してしまい無視した形になってしまいました。。。 今日はlambda式。 Lispから来た名前だそうで。 lambda式とは defステートメントのように関数を作成する際に使用するもの。 defステートメントとは違い「式」。よってdefステートメントでは記述できない場所に記述することが可能。 また、defステートメントでは関数の名前を記述できたが、lambda式では意図的に代入しない限り名前がない。つまり無名関数生成式ということ。 lambda式のシンタックス lambda <arg1>,<arg2>,...<argN>: <expressions> の形をとる。 実際に書いてみる。 まずdefステートメントから、 >>> def func(x,y,z): r

    yuya_presto
    yuya_presto 2010/12/04
    無性に使いたくなるシーンが実際にあった。やっぱり個人的にコピペしまくりでコードを書きたくないみたいだ。ただし、今回は結局普通にforすればいいだけじゃんかという話だったが。残念すぎる、頭固い?
  • 1