fusion-lang 0.0.1.alpha1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/stdlib/map.fsn ADDED
@@ -0,0 +1,4 @@
1
+ (
2
+ {"f": _, "xs": []} => [],
3
+ {"f": f, "xs": [x, ...rest]} => [x | f, ...({"f": f, "xs": rest} | @map)]
4
+ )
@@ -0,0 +1 @@
1
+ (n ? @Integer => [n, n] | @multiply)
data/stdlib/range.fsn ADDED
@@ -0,0 +1,4 @@
1
+ (
2
+ 0 => [],
3
+ n ? @Integer => [...([n, 1] | @subtract | @range), [n, 1] | @subtract]
4
+ )
metadata ADDED
@@ -0,0 +1,67 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fusion-lang
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.alpha1
5
+ platform: ruby
6
+ authors:
7
+ - Klaus Weidinger
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: A JSON-inspired functional programming language
13
+ email:
14
+ - weidkl@gmx.de
15
+ executables:
16
+ - fusion
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - LICENSE.txt
21
+ - README.md
22
+ - Rakefile
23
+ - docs/index.md
24
+ - docs/lang/design.md
25
+ - docs/lang/roadmap.md
26
+ - docs/user/explanation.md
27
+ - docs/user/how-to-guides.md
28
+ - docs/user/reference.md
29
+ - docs/user/tutorial.md
30
+ - examples/double.fsn
31
+ - examples/factorial.fsn
32
+ - examples/first.fsn
33
+ - examples/fizzbuzz.fsn
34
+ - examples/palindrome.fsn
35
+ - exe/fusion
36
+ - lib/fusion.rb
37
+ - lib/fusion/version.rb
38
+ - stdlib/map.fsn
39
+ - stdlib/math/square.fsn
40
+ - stdlib/range.fsn
41
+ homepage: https://github.com/dunkelziffer/fusion
42
+ licenses:
43
+ - MIT
44
+ metadata:
45
+ source_code_uri: https://github.com/dunkelziffer/fusion
46
+ homepage_uri: https://github.com/dunkelziffer/fusion
47
+ bug_tracker_uri: https://github.com/dunkelziffer/fusion/issues
48
+ documentation_uri: https://github.com/dunkelziffer/fusion/blob/main/README.md
49
+ rubygems_mfa_required: 'true'
50
+ rdoc_options: []
51
+ require_paths:
52
+ - lib
53
+ required_ruby_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: 3.3.0
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ requirements: []
64
+ rubygems_version: 4.0.8
65
+ specification_version: 4
66
+ summary: A JSON-inspired functional programming language
67
+ test_files: []