100% found this document useful (3 votes)
18 views

Quick Functional Programming Quick Programming 1st Edition David Matuszek all chapter instant download

Functional

Uploaded by

gimmybindy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
18 views

Quick Functional Programming Quick Programming 1st Edition David Matuszek all chapter instant download

Functional

Uploaded by

gimmybindy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 40

Get ebook downloads in full at ebookmeta.

com

Quick Functional Programming Quick Programming


1st Edition David Matuszek

https://ebookmeta.com/product/quick-functional-programming-
quick-programming-1st-edition-david-matuszek/

OR CLICK BUTTON

DOWNLOAD NOW

Explore and download more ebook at https://ebookmeta.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Quick Java David Matuszek

https://ebookmeta.com/product/quick-java-david-matuszek/

ebookmeta.com

Quick Recursion 1st Edition David Matuszek

https://ebookmeta.com/product/quick-recursion-1st-edition-david-
matuszek/

ebookmeta.com

Programming Scala Scalability Functional Programming


Objects Third Edition Wampler Dean

https://ebookmeta.com/product/programming-scala-scalability-
functional-programming-objects-third-edition-wampler-dean/

ebookmeta.com

SKETCH LIKE AN ARCHITECT ADVANCED TECHNIQUES TOME 2 2nd


Edition David Dražil

https://ebookmeta.com/product/sketch-like-an-architect-advanced-
techniques-tome-2-2nd-edition-david-drazil/

ebookmeta.com
I Married An Incubus Regine Abel

https://ebookmeta.com/product/i-married-an-incubus-regine-abel/

ebookmeta.com

An Honorable Arrangement 1st Edition A S Fenichel

https://ebookmeta.com/product/an-honorable-arrangement-1st-edition-a-
s-fenichel/

ebookmeta.com

Warhammer Altdorf Crown of the Empire 4th Edition


Warhammer

https://ebookmeta.com/product/warhammer-altdorf-crown-of-the-
empire-4th-edition-warhammer/

ebookmeta.com

Under the Whispering Door T J Klune

https://ebookmeta.com/product/under-the-whispering-door-t-j-klune/

ebookmeta.com

Storyfun for Starters Level 1 Student s Book with Online


Activities and Home Fun Booklet 1 2nd Edition Karen Saxby

https://ebookmeta.com/product/storyfun-for-starters-level-1-student-s-
book-with-online-activities-and-home-fun-booklet-1-2nd-edition-karen-
saxby/
ebookmeta.com
Foundations of Game Engine Development Volume 1
Mathematics 1st Edition Eric Lengyel

https://ebookmeta.com/product/foundations-of-game-engine-development-
volume-1-mathematics-1st-edition-eric-lengyel/

ebookmeta.com
Quick Functional
Programming
Why learn functional programming? Isn’t that some compli-
cated ivory-­tower technique used only in obscure languages like
Haskell?

In fact, functional programming is actually very simple. It’s also


very powerful, as Haskell demonstrates by throwing away all the
conventional programming tools and using only functional pro-
gramming features. But it doesn’t have to be done that way.

Functional programming is a power tool that you can use in addi-


tion to all your usual tools, to whatever extent your current main-
stream language supports it. Most languages have at least basic
support.

In this book, we use Python and Java and, as a bonus, Scala. If you
prefer another language, there will be minor differences in syntax,
but the concepts are the same.

Give functional programming a try. You may be surprised


how much a single power tool can help you in your day-­to-­day
programming.
Quick Functional
Programming

David Matuszek
First edition published 2023
by CRC Press
6000 Broken Sound Parkway NW, Suite 300, Boca Raton, FL 33487-2742
and by CRC Press
4 Park Square, Milton Park, Abingdon, Oxon, OX14 4RN
CRC Press is an imprint of Taylor & Francis Group, LLC
© 2023 David Matuszek
Reasonable efforts have been made to publish reliable data and information, but
the author and publisher cannot assume responsibility for the validity of all
materials or the consequences of their use. The authors and publishers have
attempted to trace the copyright holders of all material reproduced in this
publication and apologize to copyright holders if permission to publish in this
form has not been obtained. If any copyright material has not been acknowledged
please write and let us know so we may rectify in any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be
reprinted, reproduced, transmitted, or utilized in any form by any electronic,
mechanical, or other means, now known or hereafter invented, including
photocopying, microfilming, and recording, or in any information storage or
retrieval system, without written permission from the publishers.

For permission to photocopy or use material electronically from this work,


access www.copyright.com or contact the Copyright Clearance Center, Inc.
(CCC), 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400. For works
that are not available on CCC please contact mpkbookspermissions@tandf.
co.uk
Trademark notice: Product or corporate names may be trademarks or registered
trademarks and are used only for identification and explanation without intent
to infringe.
ISBN: 978-1-032-41532-1 (hbk)
ISBN: 978-1-032-41531-4 (pbk)
ISBN: 978-1-003-35854-1 (ebk)
DOI: 10.1201/9781003358541
Typeset in Minion
by SPi Technologies India Pvt Ltd (Straive)
To all my students,
past, present, and future.
Contents

About the Author, xi


Preface, xiii

Chapter 1   ◾    What Is Functional Programming? 1

Chapter 2   ◾    Methods and Functions 5


2.1 Methods 6
2.1.1 Methods in Python 6
2.1.2 Methods in Java 7
2.1.3 Methods in Scala 9
2.2 Function Literals 10
2.2.1 Function Literals in Python 11
2.2.2 Function Literals in Java 12
2.2.3 Function Literals in Scala 13
2.3 Sorting Examples 14
2.3.1 Sorting in Python 14
2.3.2 Sorting in Java 16
2.3.3 Sorting in Scala 18

vii
viii   ◾   Contents

Chapter 3   ◾    Higher-Order Functions 21


3.1 Higher-Order Functions in Python 22
3.2 Higher-Order Functions in Java 25
3.3 Higher-Order Functions in Scala 27

Chapter 4   ◾    Functional Interfaces in Java 31


4.1 Single Abstract Methods 31
4.2 Anonymous Inner Classes 32
4.3 Defining Functional Interfaces 33
4.4 Method References 34
4.5 The Other Method Reference 37
4.6 Provided Functional Interfaces 38
4.6.1 IntPredicate 38
4.6.2 Function Composition 39
4.6.3 Predicates Again 41
4.6.4 Unary Operators 42
4.6.5 More Functions and Operators 43
4.6.6 Suppliers and Consumers 44

Chapter 5   ◾    If Expressions 47


5.1 If Expressions in Python 47
5.2 If Expressions in Java 48
5.3 If Expressions in Scala 49

Chapter 6   ◾    Comprehensions 51


6.1 List Comprehensions in Python 52
6.2 Comprehensions in Java 54
6.3 For Expressions in Scala 54
6.4 For Comprehensions in Scala 57
Contents   ◾   ix

Chapter 7   ◾    Closures 59


7.1 Closures in Python 60
7.2 Closures in Java 61
7.3 Closures in Scala 63
7.4 Closure Example 64

Chapter 8   ◾    Currying 67


8.1 Currying in Python 69
8.2 Currying in Java 71
8.3 Currying in Scala 72

Chapter 9   ◾    Function Composition 75


9.1 Function Composition in Python 75
9.2 Function Composition in Java 77
9.3 Function Composition in Scala 78

Chapter 10   ◾    Optional Values 79


10.1 Optional in Python 80
10.2 Optional in Java 80
10.3 Option in Scala 81

Chapter 11   ◾    Lists 83


11.1 Recursion 84
11.2 Lists in Python 86
11.3 Lists in Java 87
11.4 Lists in Scala 87

Chapter 12   ◾    Streams 91


12.1 Generators in Python 92
12.2 Streams in Java 92
x   ◾   Contents

12.3 Numeric Streams in Java 95


12.4 Streams in Scala 95

Chapter 13   ◾    Important Functions 97


13.1 Important Functions in Python 98
13.2 Important Functions in Java 99
13.3 Important Functions in Scala 102
13.4 Additional Functions in Scala 105

Chapter 14   ◾    Pipelines 107


14.1 Pipelines in Python 109
14.2 Pipelines in Java 110
14.2.1 Intermediate Operations 110
14.2.2 Terminal Operations 112
14.2.3 Collectors 114
14.2.4 Example 115
14.3 Pipelines in Scala 116

Chapter 15   ◾    Summary and Final Examples 119


15.1 Examples in Python 120
15.2 Examples in Java 122
15.3 Examples in Scala 123

Afterword 125

Index, 127
About the Author

I ’m David Matuszek, known to most of my students as “Dr.


Dave.”

I wrote my first program on punched cards in 1963 and immedi-


ately got hooked.

I taught my first computer classes in 1970, as a graduate student in


Computer Science at The University of Texas in Austin. I eventu-
ally got my PhD from there, and I’ve been teaching ever since.
Admittedly, I spent over a dozen years in industry, but even then,
I taught as an adjunct for Villanova university.

I finally escaped from industry and joined the Villanova faculty


full time for a few years and then moved to the University of
Pennsylvania, where I directed a Master’s program (MCIT,
Masters in Computer and Information Technology) for students
coming into computer science from another discipline.

Throughout my career, my main interests have been in artificial


intelligence (AI) and programming languages. I’ve used a lot of
programming languages.

I retired in 2017, but I can’t stop teaching, so I’m writing a series


of “quick start” books on programming and programming

xi
xii   ◾   About the Author

languages. I’ve also written two science fiction novels, Ice Jockey
and All True Value, and I expect to write more. Check them out!

And hey, if you’re a former student of mine, drop me a note. I’d


love to hear from you!

david.matuszek@gmail.com
Preface

Y ou probably think that functional programming (FP) is


something dreamed up by ivory-­ tower academics using
obscure languages that few people understand.

You’re right.

You probably think that those weird languages such as Haskell,


Standard ML, and OCaml are never going to be very popular with
ordinary programmers.

Right again.

But did you notice…

• That ivory-­tower academics are some pretty smart people?


• That the programming language you use every day, what-
ever it is, is getting more FP features?

“Pure” functional programming, abandoning all the conventional


programming techniques, really is difficult. But you don’t have to
do that. Think of it this way: Conventional programming consists
of a collection of hand tools, and FP adds a power tool to the mix.
Just one—it doesn’t do everything, and you still need all the other
tools (unless you’re an ivory-­tower academic), but where you can
use it, it saves a lot of work.
xiii
xiv   ◾   Preface

Here’s a spoiler: FP will let you replace many of your loops with
shorter, simpler, easier to understand function calls. Yes, there’s
some unfamiliar syntax involved, but it’s just syntax, and you can
get used to it very quickly. The new concepts, the parts you might
think are the most difficult, turn out to be trivially simple.

You may be surprised how much a single power tool can help you
in your day-­to-­day programming.

FP is coming into prominence now because it is a far better way to


write concurrent programs, suitable for multi-­core computers.
However, this is only a book about functional programming, not
about concurrent programming; that would require a far larger
volume.

Each chapter after the first begins with an explanation of some


particular concept of functional programming. After that, there
are sections exemplifying that concept in each of three languages.

• Python, because it is a simple, widely known language.


Python has only a few of the most basic FP features.
• Java, because it is widely known and has many of the FP
features. The developers of these features have done an
awesome job in fitting these features into a language that
was never designed to hold them.
• Scala, which has been designed from the ground up to be
both object oriented and functional, and therefore provides
the cleanest and most complete set of FP features.

I have tried to make this book accessible to programmers who


do not know Python or Scala. The FP features of these languages
can be understood without an in-­depth knowledge of the language
in which they occur. Unfortunately, no such claim can be made
for Java.
Other documents randomly have
different content
“Mr Irwin injects a lot of fun into his tale.”

+ − Springf’d Republican p9a Ag 15 ’20


190w

ISE, JOHN. United States forest policy. *$5 Yale


univ. press 634.9

20–8898

“After an interesting historical account of forestry in the United


States, the author discusses the development of an interest in forest
conservation, the legislation dealing with the forests and the many
unwise laws under which the forest lands have been stolen or the
forests destroyed.” (Springf’d Republican) “Dr Ise shows how
intricately the utilization of this great branch of natural resources has
been bound up with the nation’s commercial development.” (The
Times [London] Lit Sup)

“Thoroughly documented. Better for reference than for reading.”

+ Booklist 17:58 N ’20

“Books like this by Mr Ise will contribute to the growth of public


sentiment. Perhaps it is not too much to expect that professional
historians may sometimes hear about it and include instruction in
this phase of our economic history.” C: A. Beard

+ Nation 112:187 F 2 ’21 480w


“A well written and nontechnical book.”

+ Springf’d Republican p10 S 24 ’20 260w


+ The Times [London] Lit Sup p480 Jl 29
’20 460w

IVES, HERBERT EUGENE. Airplane


photography. il *$4 (3½c) Lippincott 778

20–7599

Although airplane photography is of military origin, it has been the


writer’s endeavor to treat the subject as a problem of scientific
photography applicable to mapping and other peace-time pursuits.
“It is assumed that the reader is already fairly conversant with
ordinary photography. Considerable space has indeed been devoted
to a discussion of the fundamentals of photography, and to scientific
methods of study, test, and specification. This has been done because
aerial photography strains to the utmost the capacity of the
photographic process, and it is necessary that the most advanced
methods be understood.” (Preface) 208 illustrations help to elucidate
the text and there is an index.

Booklist 16:268 My ’20

“While not pretending to be exhaustive, it offers much interesting


and useful information.”
+ Cleveland p88 O ’20 30w

“This thorough technical treatise may be used as a practical


manual for class or self instruction.”

+ Outlook 124:431 Mr 10 ’20 50w


+ Spec 124:625 My 8 ’20 130w

IVEY, PAUL WESLEY. Elements of retail


salesmanship. *$2.25 Macmillan 658

20–3332

“Professor Ivey explains to the student first that he should know


the goods that he intends to sell, and gives many useful hints as to
the character of this knowledge. Next he expatiates on the necessity
of his knowing and studying his customers. He picks out the
elements of personality which make a successful salesman; these
include enthusiasm, honesty, tact, courtesy, promptness and
cheerfulness. He describes in detail the selling processes as well as
store systems and methods, warning the student against many
common errors and slips.”—N Y Evening Post

“An interesting and practical book for department store classes.


Addressed to more mature minds than Norton [‘Text book on retail
selling’] and more concerned with psychological principles.”

+ Booklist 16:265 My ’20


“The information is put clearly and intelligently and the book is a
good one of its kind.”

+ N Y Evening Post p13 My 8 ’20 150w


J

JACKSON, ABRAHAM VALENTINE


WILLIAMS. Early Persian poetry. il *$2.25
Macmillan 891.5

20–7452

“From the beginnings down to the time of Firdausi” (Sub-title) is


the ground covered by this book, which aims “to give succinctly the
main outlines of the several early periods, ... and to illustrate, by
translations made from the original Persian, the characteristics of the
various authors.... Many of the citations are only small fragments of
verse from Persian poets so long dead that they have been evoked
almost as shades from the far-distant past.... Some of the reliques of
their works, however, are longer and have a fuller metrical tale to
tell. The episode of Suhrab and Rustam, moreover, is a well-known
classic in literature.” (Preface) Contents: Persian poetry of ancient
days; The new awakening of Persian song after the Muhammadan
conquest; the Tahirid and Saffarid periods; Rays from lost minor
stars: earlier Samanid period; Rudagi, a herald of the dawn; Snatches
of minstrel song; from the later Samanid period to the era of
Mahmud of Ghaznah; Dakiki; The round table of Mahmud of
Ghaznah: court poetry; Firdausi, and the great Persian epic; The
Shah-namah; some selections translated; Epilogue. There are
illustrations, a list of works of reference, a list of abbreviations, an
alphabetical list of poets, a note on Persian pronunciation and an
index.
+ Booklist 17:61 N ’20

“Much as we must admire Professor Jackson’s zeal and fervor ...


yet one can not but feel a sense of disappointment at the
amateurishness of some of his versions, with their often clumsy use
of ‘did’ and their woodeny structure.” N. H. D.

+ − Boston Transcript p7 Jl 10 ’20 650w

“Professor Jackson has added immeasurable value to his book by a


large number of original translations that are skillfully done and still
retain poetry in their phraseology. The author’s hope of carrying on
his work is commendable, and it is to be desired that circumstances
make it possible.”

+ N Y Times 25:16 Je 27 ’20 200w

JACKSON, BENNETT BARRON, and others,


comps. Thrift and success. il *$1.25 Century 331.84

19–12737

A compilation arranged by the superintendent and two teachers of


the Minneapolis public schools. “Several selections are devoted to the
general aspects of thrift, but the editors have wisely included a
considerable number of selections describing such thrift agencies as
savings banks, farm mortgages, postal savings banks, life insurance,
and government bonds. The opportunities for wise investment, as
well as the necessity for saving, are thus brought clearly to the
reader’s attention. The book includes several little plays which teach
a thrift lesson. There are, too, inspiring talks intended to stimulate
children to make a success of themselves. A number of biographical
sketches of prominent Americans of the past and present are
included.” (Survey)

“A valuable occasional reader or teacher’s manual.”

+ Booklist 16:151 F ’20

“All the selections teach definite, crisp lessons, and teachers


interested in thrift instruction will find the book extremely
suggestive.” G: F. Zook

+ Survey 42:760 Ag 23 ’19 140w

[2]
JACOBS, EDWIN ELMORE. Study of the
physical vigor of American women; pref. by Charlotte
Perkins Gilman. $1.50 Jones, Marshall 612

The author presents the results of some statistical studies made


among college women. The outcome of the study is to show “that
there is no real evidence of the decline in the physical vigor of the
women of America.” And arguing that “the male half of the
population of a country can neither be very far ahead or behind the
female part in its general health,” he holds that his conclusions may
apply to the population as a whole. The investigation was carried out
along four lines: fertility, longevity, anthropological measurements
and women’s athletics. There is a five-page list of references.
Booklist 17:99 D ’20

JACOBSEN, JENS PETER. Niels Lyhne; tr.


from the Danish by Hanna Astrup Larsen.
(Scandinavian classics) $2 (2½c) Am.-Scandinavian
foundation

20–1700

A novel by the author of “Marie Grubbe.” It has been called a


spiritual autobiography and in her introduction the translator
sketches the relation of the novel to Jacobsen’s own life. It is the
story of a dreamer who always falls short in his contacts with reality.
Niels Lyhne’s mother spends her life in one long day dream, broken
by disillusionments from which she hastens to take refuge in still
further dreams. The infusion of this temperament in her son, though
mixed with his father’s sterner stuff, renders all his efforts futile. The
story opens with a beautiful account of Niels’s childhood with its
friendship for two boy companions, and is carried through two love
episodes, and a short period of happy marriage to his death in the
war of 1864.

“The novel has the quality of a late autumn afternoon, a windless,


tranquil hour of waiting, when both strong desire and strong regret
are absent, and when in a mood of reverie and forgiveness we let the
world glide from us. A sense of something honey-sweet, faded, and
delicate pervades it. How deeply Jacobsen was the literary artist the
Larsen translation unfortunately little reveals. Though it is more
faithful to the original than the general run of translations to which
we here in America have become accustomed, its prosiness and
stiffness, its air of being all too patently the translation, prevent it
from representing Jacobsen quite fairly.” Paul Rosenfeld

+ − Dial 68:644 My ’20 2150w

“The account of Niels Lyhne’s boyhood has a depth of insight even


in matters of sex that is rare in the romance writers. Later the
narrative seems a little hurried and huddled as though vitality to
exhaust his subject had gradually failed the author. But this
uncommonly sensitive translation of a memorable book is cordially
to be welcomed.” L. L.

+ Nation 110:sup488 Ap 10 ’20 200w

JAMES, GEORGE WHARTON. New Mexico;


the land of the delight makers. (See America first
ser.) il *$5 Page 917.89

20–6434

This is the third book about the southwest, a land he knows


intimately, that Mr James has contributed to this series. California
and Arizona were the subjects of the first books and he has found in
New Mexico a theme of equal interest. As set forth in the long
subtitle the aspects of New Mexico covered include “the history of its
ancient cliff dwellings and pueblos, conquest by the Spaniards,
Franciscan missions; personal accounts of the ceremonies, games,
social life, and industries of its Indians; a description of its climate,
geology, flora and birds, its rivers and forests; a review of its rapid
development, land reclamation projects and educational system;
with full and accurate accounts of its progressive counties, cities and
towns.” Two interesting chapters deal with literature and art and
among the illustrations are a number from paintings by artists of the
Taos colony. There is a bibliography and the book is indexed.

“Like others of the series, a beautiful picture book.”

+ Booklist 16:309 Je ’20

JAMES, HENRY. Letters of Henry James. 2v il


*$10 Scribner

20–6773

In editing these volumes of letters, Mr Percy Lubbock has had a


wide field for selection. For, as he says of Henry James, “He was at
all times a copious letter-writer, overflowing into swift and easy
improvisation to his family and to the many friends with whom he
corresponded regularly. His letters have been widely preserved, and
several thousands of them have passed through my hands, ranging
from his twenty-fifth year until within a few days of his last illness.”
(Introd.) In addition to the introduction which opens volume 1, the
editor has contributed brief illuminating prefaces to the sections into
which the volumes are divided. These divisions, for volume 1, are:
First European years: 1869–1874; Paris and London: 1875–1881;
The middle years: 1882–1888; Later London years: 1889–1897; and
Rye, 1898–1903. Volume 2 comprises: Rye: 1904–1909; Rye and
Chelsea: 1910–1914; and The war: 1914–1916. Notes are often
provided for individual letters and an index adds to the value of the
admirably edited work.
Reviewed by Sydney Waterlow

+ − Ath p537 Ap 23 ’20 2350w

“The portrait they paint of the novelist and his surroundings is so


clear that the editor has needed merely to add here and there a
prefatory note. These and the introduction are finely appreciative
and adequate.”

+ Booklist 16:279 My ’20

“The editor, Mr Lubbock, has compassed a dangerous undertaking


in his selection and, while he offers many letters which illustrate the
social side of his hero, he justly lays stress on the inclusion of literary
themes. These letters bid fair to become a classic in English
literature.” J. G. Huneker

+ Bookm 51:364 My ’20 2700w

“Throughout them we find an abundance of literary comment


upon his fellow writers which is pungent and vigorous, even if not
always convincing.” E. F. E.

+ Boston Transcript p10 Ap 10 ’20 1500w

Reviewed by Gilbert Seldes

+ Dial 69:83 Jl ’20 3700w


“Mr Lubbock tells us that James left behind him scarcely a
document that revealed any trace of the origins of his work. Of the
origins of his spirit, his point of view, he yields us scarcely more in
the way of documentary evidence. One apprehends him here indeed
in certain aspects of intimacy as the son, as the brother, as, if not the
friend, at least the fellow-artist, as, perhaps most warmly, the uncle.
It is only—only—as the man that he foils our question.” V. W. B.

+ − Freeman 1:164 Ap 28 ’20 1700w


Lit D p89 Jl 10 ’20 3450w

“All the more, however, finding him thus restricted as to race and
sympathies and images, do we find ourselves admiring the
magnificent passion with which he worked at his art. His famous
prefaces to his novels and tales are accepted as an indispensable
handbook to the art of fiction. No less may his letters be considered
indispensable to those serious students and fellow-artists who wish
to observe a genius massively revolving and tirelessly
experimenting.” C. V. D.

+ Nation 110:690 My 22 ’20 2000w


* Nation [London] 27:178 My 8 ’20 1550w

“I am brash enough to venture the prediction that the best book of


Henry James’s, the one with the widest appeal, the one with the most
permanent interest, the one most easily read, is not to be found
among those which he wrote for publication, but is this collection of
his correspondence. What these letters bring before us vividly is a
warm-hearted James, devoted to his family and dowered with the
gift of friendship.” Brander Matthews
+ N Y Times 25:151 Ap 4 ’20 2750w

“Whatever has been deleted does not harm that which gives
pleasure and delight, surprising us by the clarity and directness of its
style and by the warm sentiment of its friendship.”

+ N Y Times 25:191 Ap 18 ’20 380w

“For half a century Henry James poured himself out to his friends
in letters that are matchless for their prodigal and eager flow of
sympathy, their inexhaustible kindliness, their ample and exquisite
tenderness, their beautiful generosity. These letters are priceless.”
Lawrence Gilman

+ No Am 211:682 My ’20 3000w

“We have joked so long about the obscurity of his style as a novelist
that this conception of him has become a habit with us. But now that
his letters are published, we must alter our portrait.” M. J. Moses

+ Outlook 125:167 My 26 ’20 2200w

“He has been fortunate in an editor who understands and relishes


the peculiarities of the case. There is one general criticism to be
made of the exhibition. The letters seem to have been edited, perhaps
unconsciously, to emphasize the completeness of James’s English
adoption.” S. P. Sherman

+ − Review 3:706 Jl 7 ’20 2350w


“We can only warn the reader who takes up these remarkable
volumes that he will not find in them pretty anecdotes or gossip
about notabilities: but he will find much excellent criticism and
psychology, and he will find copiously and minutely displayed an
intellect massive and yet subtle, and a character as nobly dignified as
it was humanly attractive.”

+ Spec 124:691 My 22 ’20 1500w

“One of the many rich interests of these volumes is to discern the


reflection of the person written to, in the letter written.”

+ Springf’d Republican p11a Je 6 ’20


1400w

JAMES, HENRY. Master Eustace. *$2 (3½c)


Seltzer

“The five stories in this volume, together with the four included in
‘A landscape painter,’ appeared originally in American periodicals,
but for some unknown reason were never issued by Henry James in
book form in this country. The present volume, along with ‘A
landscape painter,’ makes accessible to the American public the nine
short stories of Henry James which hitherto have been accessible
only in English editions of his works.” (Preface) The five stories, all
written later than “A landscape painter” are: Master Eustace;
Longstaff’s marriage; Théodolinde; A light man; and Benvolio.

“It is not to be imagined that because the stories in this collection


are primarily concerned with the interplay of character they are slow-
moving narratives, with a tendency to be diffuse. On the contrary,
they are well-knit and direct in conception, and executed with
richness, deftness in phrase and mood, and a quiet but keen wit.”
Lisle Bell

+ Freeman 2:381 D 29 ’20 540w

“No one need look for masterpieces among tales that Henry James
declined to put between covers. The poorest inclusion in the book,
and one of James’s very poorest bits of writing, is ‘Theodolinde.’ The
book is valuable but not invaluable.”

+ − N Y Evening Post p17 D 4 ’20 320w

“They are written in a style transparently clear and


straightforward, and are decidedly romantic in substance and form.
Nothing in this book is equal to the stories in the preceding volume.”
W: L. Phelps

+ N Y Times p2 D 12 ’20 160w

JAMES, HENRY DUVALL. Controllers for


electric motors. il *$3 Van Nostrand 621.317

20–174

“A treatise on the modern industrial controller, together with


typical applications to the industries.” (Sub-title) The volume
consists of articles originally published in the Electric Journal, with
the addition of some new material. Partial list of contents:
Introduction; Historical; Design details: How to read controller
diagrams; Methods of accelerating motors; Starting characteristics of
motors with different methods of control; Methods of speed control
and dynamic braking; Direct current magnetic contactor controllers;
Alternating current controllers; Resistors; Protective devices. There
are 259 illustrations and an index.

Booklist 17:99 D ’20

JAMES, WILLIAM. Letters. 2v il *$10 Atlantic


monthly press

20–23198

“It is, naturally enough, less the scientist and thinker than the man
which is revealed in ‘The letters of William James,’ now edited, with
all the necessary explanatory material by his son Henry James. This
is as everybody should wish. For he was one of the greatest
Americans in personal qualities as well as in powers of mind and
these letters reveal him as he was. The energy and range of his mind
and the prodigious richness of his personality are truly revealed in
these two volumes. There are not a few valuable critical comments—
such as his estimate of Santayana’s ‘Life of reason’—which are not
otherwise accessible to the public, and there are no end of vivid
impressions brilliantly or tenderly phrased.”—Springf’d Republican

+ Booklist 17:152 Ja ’21


“These letters—arranged in two comely volumes by the sure and
skilful hand of William James’s son—are full of wise and occasionally
profound little annotations upon contemporary American life and
manners. They will be treasured for the simple and delightful bits of
self-revelation that they afford.” H: H. Lappin

+ Bookm 52:557 F ’21 1150w

“Letters rarely disclose so much of a man in his entirety as do


these. They are eloquent in manner and equally eloquent in their
self-revelation. They are not merely ‘The letters of William James’;
they are the record of an epoch in the history of philosophy and the
chronicle of a notable family.”

+ Boston Transcript p10 D 8 ’20 2150w

“Although the correspondence with his colleagues all over the


world will be perhaps most eagerly read, the family letters are the
most beautiful. But there are some letters which should never have
been printed. In moments of heat and irritation James said things
about persons he met and even about his colleagues at Harvard,
which should not have been preserved in cold type.” W: L. Phelps

+ − N Y Times p2 D 12 ’20 1650w

“Whether we are seeking enjoyment or mental and spiritual uplift,


we may approach these letters with assurance.” Joseph Mosher

+ Pub W 98:1894 D 18 ’20 470w


“As there has been no other American, and indeed, no other man,
like William James, so there can never be another collection of
letters like his, full of a unique and precious personality. All who care
for genius in its most human and most winning manifestations will
find the book a treasure-house.”

+ Springf’d Republican p7a D 12 ’20


2600w

JASTROW, MORRIS, jr. Book of Job; its origin,


growth and interpretation. *$4 Lippincott 223

20–27474

The author regards the Book of Job as the most celebrated of the
books of the Bible and the literary masterpiece of the Old Testament,
and the object of the present volume is to aid in the better
understanding and appreciation of the original, which has hitherto
been blocked by defective translations and insufficient consideration
of its composite authorship. The contents of Part 1, The origin,
growth and interpretation of the Book of Job, are: The folktale of Job
and the Book of Job; The three strata in the Book of Job; Changes
and additions within the original Book of Job; How a skeptical book
was transformed into a bulwark of orthodoxy; The Book of Job as
philosophy and literature. Part 2 is then devoted to a new translation
of the Book of Job, with plentiful annotations.

+ Booklist 17:138 Ja ’21


“The work shows wide scholarship and in many passages the new
version is impressive and beautiful. Yet, after all is said, in spite of
the incorrectness of the King James version, in which, according to
Dr Jastrow, one line in ten is wrong, one cannot help liking its style
better than that of the new version.” N. H. D.

+ − Boston Transcript p3 D 8 ’20 1150w

“Professor Jastrow’s view will have to overcome not only


traditional prejudice but also strong emotional attachment to the
older view. But his volume is one which students of the Bible cannot
ignore.”

+ − Outlook 126:767 D 29 ’20 380w

“This is a vastly interesting and important book, and it isn’t a book


for preachers only, but for everybody who makes any pretence at all
to an interest in good literature.” R. S. Lynd

+ Pub W 98:1892 D 18 ’20 330w

JASTROW, MORRIS, jr. Eastern question and


its solution. *$1.50 (6c) Lippincott 327

20–7859

The author holds that the problems of the Near East will continue
to be a menace to the peace of the world until they are properly
settled; that they cannot be properly settled without the cooperation
of America, that America can only help by avoiding two
contingencies—political complications and the dispatching of a large
army across the sea—that mandatories involve both these
contingencies and that the only satisfactory solution lies in the
creation of international commissions. The last chapter is devoted
entirely to a discussion of this solution. Contents: The failure of
European diplomacy in the Near East; The present situation;
Mandates not a solution of the eastern question; Internationalism as
a solution of the eastern question; Insert map of Europe after the
great war.

Booklist 16:299 Je ’20

“The fact that Professor Jastrow’s scheme has not been adopted
does not in the least detract from its merits, in these days of flux and
change; and a book like his is well worth while, if it helps to educate
public opinion in this country on a question that involves us all,
whether we like it or not.” C. R. H.

+ Freeman 2:282 D 29 ’20 210w

“Optimism breeds optimism. Idealism is contagious. Such noble


faith as Dr Jastrow’s is a real world asset.”

+ N Y Times p4 Ag 15 ’20 600w


Outlook 125:507 Jl 14 ’20 50w

Reviewed by M. H. Anderson

Pub W 97:1293 Ap 17 ’20 250w

You might also like