Clojure is a programming language that is a lisp. You can use the REPL on http://app.klipse.tech to try out the examples.
A clojure function has this form:
(defn <function-name> [<arg-list>]
body)
For example, here's an increment function:
TASK [Gathering Facts] ******************************************************************************************************************************************************************************************* | |
ok: [167.71.226.153] | |
ok: [157.245.99.197] | |
TASK [datadog.datadog : Check if OS is supported] **************************************************************************************************************************************************************** | |
included: /Users/prabhanshu/.ansible/roles/datadog.datadog/tasks/os-check.yml for 167.71.226.153, 157.245.99.197 | |
TASK [datadog.datadog : Fail if OS is not supported] ************************************************************************************************************************************************************* | |
skipping: [167.71.226.153] | |
skipping: [157.245.99.197] |
PLAY [rails] ******************************************************************************************************************************************************************** | |
TASK [Gathering Facts] ********************************************************************************************************************************************************** | |
[DEPRECATION WARNING]: Distribution Ubuntu 16.04 on host ec2-13-234-238-44.ap-south-1.compute.amazonaws.com should use /usr/bin/python3, but is using /usr/bin/python for | |
backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See | |
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings | |
can be disabled by setting deprecation_warnings=False in ansible.cfg. | |
ok: [ec2-13-234-238-44.ap-south-1.compute.amazonaws.com] | |
TASK [datadog.datadog : Check if OS is support |
Clojure is a programming language that is a lisp. You can use the REPL on http://app.klipse.tech to try out the examples.
A clojure function has this form:
(defn <function-name> [<arg-list>]
body)
For example, here's an increment function: