Python> lambda> tiny functions / callback functions

@ Introducing Python: Modern Computing in Simple Packages by Bill Lubanovic (No. 2736 / 12833)

There is a description about lambda.

The following two usages

I tried the tiny function.

http://ideone.com/jKrTOy

def print_processed(alist, func):
	for elem in alist:
		print(func(elem))

members = [ '7of9', 'Janeway', 'Able was I ere I saw Elba' ]
print_processed(members, lambda word: word[::-1])

result


9fo7
yawenaJ
ablE was I ere I saw elbA

6.13. Lambda (lambda)

Recommended Posts

Python> lambda> tiny functions / callback functions
Python functions
#Python basics (functions)
[Beginner] Python functions
Python Easy-to-use functions
Python basics: functions
Python Beginner's Guide (Functions)
Python basic course (12 functions)
A python lambda expression ...
[Python] Memo about functions
# 4 [python] Basics of functions
Python built-in functions ~ Zip ~
Wrap Python built-in functions
Curry arbitrary functions with Python ....
Getting Started with Python Functions
Python3 programming functions personal summary
Operate TwitterBot with Lambda, Python
[Python] Scraping in AWS Lambda
Use callback function in Python
Query Athena from Lambda Python
Super tiny struct in python
Study from Python Hour3: Functions
Overriding library functions in Python
Keyword arguments for Python functions
Python for super beginners Python #functions 1
Paiza Python Primer 7: Understanding Functions
Python 3 sorted and comparison functions
Python functions learned in chemoinformatics
How to use Python lambda
Python higher-order functions and comprehensions
Basic grammar of Python3 system (how to use functions, closures, lambda functions)
Python control syntax, functions (Python learning memo ②)
[Introduction to Udemy Python 3 + Application] 58. Lambda
Azure Functions: Try Durable Functions for Python
[python] Callback function (pass function as argument)
[python] Manage functions in a list
Summary if using AWS Lambda (Python)
Face detection with Lambda (Python) + Rekognition
[Lambda] [Python] Post to Twitter from Lambda!
Write AWS Lambda function in Python
About python dict and sorted functions
"Effective Python 2nd Edition" Chapter 3 <Functions>
Run Python on Schedule on AWS Lambda
[Python] Make the function a lambda function
Using global variables in python functions
10 functions of "language with battery" python
[Lambda] Make import requests available [python]
Dynamically define functions (methods) in Python
python string processing map and lambda
Notify HipChat with AWS Lambda (Python)
Use PostgreSQL with Lambda (Python + psycopg2)