Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lifeware
biocham
Commits
6df982b4
Commit
6df982b4
authored
Oct 20, 2015
by
Thierry Martinez
Browse files
Recursive lists
parent
7a1000e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
models.pl
View file @
6df982b4
...
...
@@ -435,6 +435,17 @@ item(Options) :-
;
Parent0
=
Parent
),
(
var
(
Kind
)
->
true
;
list
(
Kind
)
->
member
(
Kind0
,
Kind
)
;
Kind0
=
Kind
),
(
var
(
Key
)
->
...
...
@@ -447,7 +458,7 @@ item(Options) :-
;
key
(
Key
,
Id
)
),
item
(
Id
,
Parent0
,
Kind
,
Item
).
item
(
Id
,
Parent0
,
Kind
0
,
Item
).
find_item
(
Options
)
:-
...
...
@@ -522,7 +533,7 @@ list_ids(Options, Ids) :-
Recursive
=
yes
->
SubIndent
is
Indent
+
1
,
list_items
([
indent
:
SubIndent
,
recursive
,
parent
:
Id
])
list_items
([
indent
:
SubIndent
,
recursive
,
parent
:
Id
|
Options
])
;
true
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment