Discover anonymous function clojure, include the articles, news, trends, analysis and practical advice about anonymous function clojure on alibabacloud.com
Translation instructions:English Original from: http://java.ociweb.com/mark/stm/article.htmlThe original text contains some non-STM knowledge, but also includes the STM bottom-level implementation of content, here just translated the STM abstraction
Clojure ProgrammingBasic InformationAuthor: (US) Stuart Halloway Aaron bedra [Translator's introduction]Press: People's post and telecommunications PressISBN: 9787115308474Mounting time:Published on: February 1, March 2013Start: 16Page number:
Reprinted from Http://www.tuicool.com/articles/jYzuAv and http://www.importnew.com/1537.htmlIn a keynote speech that I collaborated with Martin Fowler, he made an insightful point:The legacy of Java will be the platform, not the programming language.
Next-generation Java: Functional encoding style-functions shared by Groovy, Scala, and Clojure and scalaclojure
Original article addressContent
Imperative Processing
Function Processing
Advantages of functional programming
All
Java will be a platform rather than a programming language.
The original engineers of Java made a wise decision to separate the programming language from the runtime environment, which eventually allowed over 200 languages to run on the Java
In a keynote speech with Martin Fowler, he provided a keen observation report:
The legacy of Java is the
platform , not the
language .
The original Java technical engineer had made a great decision to separate the language
Document directory
5.1 functional programming concepts
5.2 how to resolve Recursion
5.4 recursion Revisited
5.1 functional programming concepts
The six rulesAlthough the benefits of FP are compelling, FP is a wholesale change from the
Clojure provides several powerful data structures (collections)I. Types of collections1. VectorEquivalent to an array such as: [2 3 5], ["Ad" "Adas" "Adadsads"]2. ListEquivalent to a linked list, such as: ' (2 3 5), ' ("Ad" "Adas"
clojure-basic syntax-function definitionJuly 21:12 PM1. Create function 1.fn anonymous functionExamples are as follows:"hello")#413e8>"hello"))"hello""hello") ; 带参数"hello"user=>The short function can use # (),% to indicate the unique parameter;% 1,%2
In a keynote speech with Martin Fowler, he provided an astute observation:
Java's legacy is platform, not language.
The original Java Technology engineer made a terrific decision to detach the language from the runtime, eventually enabling more
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.