blob: d260f186543e223df518a21a76cdf5b496bfb88c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
(.module:
[lux #*
[data
["." maybe ("#\." functor)]
["." text
["%" format (#+ format)]]
[collection
["." list ("#\." functor)]]]]
["." // (#+ Entity Black_List)
["_" term]
[//
["$" document]]])
(def: #export entity
(-> Entity Text)
%.text)
(def: #export (black_list black_list)
(-> Black_List Text)
(let [scope (format "The rights granted under " _.license)
effect "shall not be granted to the following entities, or any subsidiary thereof"
justification (|> black_list
(get@ #//.justification)
(maybe\map (|>> (format ", due to ")))
(maybe.default ""))
entities (|> black_list
(get@ #//.entities)
(list\map ..entity)
(text.join_with text.new_line))]
(format scope " " effect justification ":" text.new_line
entities)))
|