Functional Python Programming

(Wang) #1

distances, computing 184 , 185
performance analysis 186 - 188
problem, rearranging 188 , 189
transformations, combining 189 , 190
programming paradigms
functional programming 10
identifying 10 , 11
imperative programming 10
pure functions
about 24 , 25 , 38 , 39
features 279
writing 38 , 39
PyMonad.List() function 272
PyMonad module
about 263
downloading 263
installing 263 , 264
URL 263
PyMonad multiplication operator
used, for functional composition 268 , 269
PyPi 110
Python
about 9
Object-Oriented Programming (OOP)
features 11
Pythonic pattern matching 153 - 158
Python Imaging Library (PIL) package 183
Python lambda forms
using 91 , 92
Python Package Index (PyPi) 263
Python Standard Library document 171


Q


quantify function 178
QUERY_STRING request 294


R


random_combination function 194
random_permutation function 194
random_product function 194
rank() function 149


raw data
cleaning, with generator functions 48 , 49
raw_data() function 294
read_head() function 139
read_tail() function 139
recursion 29 - 33
recursive case states 13
reduce() function
about 197 , 198
combining, with map() function 207 , 208
groupby(), using with 210 - 212
partial() function, using with 208
used, for reducing sets of data 206 , 207
used, for sanitizing raw data 209 , 210
reductions
data, grouping by key values 130 - 132
data, partitioning by key values 130 - 132
file parsers, writing 135 - 137
from many to one 124 - 126
group-by reductions 126 , 127
group-by reduction, writing 132 , 133
higher-order reductions, writing 133 - 135
mapping, building by sorting 128 , 129
mapping, building with Counter 127 , 128
referential transparency 35
repeatfunc function 179
repeat() function
about 164
used, for repeating single value 164
Representational State Transfer (REST) 281
reversed() function
used, for changing order 84 , 85
roundrobin function 179
routing() function 288

S
Scala 33
Secured Socket Layer (SSL) protocols 284
semifact() function 256
serialism 149
serialization 296
Free download pdf