Skip to content

Commit 2a94fc1

Browse files
committed
Релиз 1.4.0
1 parent 62525e0 commit 2a94fc1

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

README.md

+18-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
# OwnLang
22

33
[![Build Status](https://travis-ci.org/aNNiMON/Own-Programming-Language-Tutorial.svg?branch=latest)](https://travis-ci.org/aNNiMON/Own-Programming-Language-Tutorial)
4-
[![SonarCloud Status](https://sonarcloud.io/api/project_badges/measure?project=aNNiMON_Own-Programming-Language-Tutorial&metric=alert_status)](https://sonarcloud.io/dashboard?id=aNNiMON_Own-Programming-Language-Tutorial)
5-
[![SonarCloud Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=aNNiMON_Own-Programming-Language-Tutorial&metric=sqale_rating)](https://sonarcloud.io/dashboard/?id=aNNiMON_Own-Programming-Language-Tutorial)
4+
5+
OwnLang - dynamic functional programming language inspired by Scala and Python. Available for PC, Android and Java ME devices.
6+
7+
## Installing
68

79
| Free | Pro | Desktop |
810
| :--: | :-: | :-----: |
9-
| [![Free](https://developer.android.com/images/brand/en_generic_rgb_wo_45.png)](https://play.google.com/store/apps/details?id=com.annimon.ownlang.free) | [![Pro](https://developer.android.com/images/brand/en_generic_rgb_wo_45.png)](https://play.google.com/store/apps/details?id=com.annimon.ownlang) | [v1.3.0](https://github.com/aNNiMON/Own-Programming-Language-Tutorial/releases/tag/v1.3.0)
11+
| [![Free](https://developer.android.com/images/brand/en_generic_rgb_wo_45.png)](https://play.google.com/store/apps/details?id=com.annimon.ownlang.free) | [![Pro](https://developer.android.com/images/brand/en_generic_rgb_wo_45.png)](https://play.google.com/store/apps/details?id=com.annimon.ownlang) | [v1.4.0](https://github.com/aNNiMON/Own-Programming-Language-Tutorial/releases/tag/v1.4.0)
1012

11-
OwnLang - dynamic functional programming language inspired by Scala and Python. Available for PC, Android and Java ME devices.
13+
Also available as AUR package:
14+
15+
```
16+
yay -S ownlang
17+
```
1218

1319
## Key features
1420

@@ -61,8 +67,7 @@ def fizzbuzz(limit = 100) {
6167
Operate data in functional style.
6268

6369
```scala
64-
use "std"
65-
use "functional"
70+
use ["std", "functional"]
6671

6772
nums = [1,2,3,4,5,6,7,8,9,10]
6873
nums = filter(nums, def(x) = x % 2 == 0)
@@ -72,18 +77,21 @@ foreach(squares, ::echo)
7277
// Sum of squares
7378
sum = reduce(squares, 0, def(x, y) = x + y)
7479
println "Sum: " + sum
80+
// Same using stream
81+
println "Sum: " + stream(range(1, 11))
82+
.filter(def(x) = x % 2 == 0)
83+
.map(def(x) = x * x)
84+
.reduce(0, def(x, y) = x + y)
7585
```
7686

7787
#### Operator overloading
7888

7989
Why not?
8090

8191
```scala
82-
use "std"
83-
use "types"
84-
use "math"
92+
use ["std", "types", "math"]
8593

86-
def `..`(a, b) = range(a, b - 1)
94+
def `..`(a, b) = range(a, b)
8795
def `**`(a, b) = int(pow(a, b))
8896
for y : 1 .. 10 {
8997
println sprintf("2 ^ %d = %d", y, 2 ** y)
@@ -130,8 +138,6 @@ def patch_callback(v) {
130138

131139
Build using Gradle `./gradlew dist`
132140

133-
or Ant `ant clean pack`
134-
135141
or take a look to [latest release](https://github.com/aNNiMON/Own-Programming-Language-Tutorial/releases/latest) for binaries.
136142

137143

0 commit comments

Comments
 (0)