Download presentation

Presentation is loading. Please wait.

Published byDavid Moran Modified over 3 years ago

1
G make_adder params: x body: def add_x(y):... Current frames: G

2
G make_adder params: x body: def add_x(y):... Current frames: G, E1 E1 x5

3
G make_adder params: x body: def add_x(y):... E1 x5 add_x params: y body: return x + y add_5

4
G make_adder params: x body: def add_x(y):... E1 x5 add_x params: y body: return x + y add_5 E2 y7

5
G my_list Current frames: G 1234 L make_first_five params: l body: l[0] = 5 E1 5 l

6
G my_list 1234 L my_tuple 1234 T 1234 T 24

7
G count_calls params: fn body: num_times = 0,... E1 num_times 0 fn params: x body: return x * x square params: arg body: num_times = num_times + 1 counted_square

8
G count_calls params: fn body: num_times = 0,... E1 num_times 0 fn params: x body: return x * x square params: arg body: num_times = num_times + 1 counted_square E2 arg2 1

Similar presentations

OK

CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 16: Let and Lambda.

CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 16: Let and Lambda.

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Ppt on second law of thermodynamics and entropy Ppt on testing of turbo generators manufacturers Ppt on world population day 2013 Download ppt on great indian mathematicians Ppt on environmental chemistry class 11 Ppt on online shopping cart in php Ppt on indian politics 2016 Ppt on traction rolling stock manufacturers Download ppt on number system for class 10 Ppt on indian textile industries in china