Section 1

Preview this deck

seq

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (12)

Section 1

(12 cards)

seq

Front

Back

fold

Front

Back

type class

Front

Back

guards (look at myFilter example)

Front

Back

lists

Front

Back

list comprehension

Front

A neat syntactical way to process elements in a sequence and return a list with the results. result = ["0x%02x" % x for x in range(256) if x % 2 == 0] generates a list of strings containing hex numbers (0x..) that are even and in the range from 0 to 255. The if part is optional' all elements are processed when it is omitted.

Back

zip

Front

Back

encapsulated flow of control

Front

Back

currying

Front

The process of converting from a function taking a tuple to a chain of functions that take one argument at a time

Back

id

Front

Back

equality comparable

Front

Back

:t undefined

Front

Back