# How to contribute examples to the SWI-Prolog documentation

**URL:** <https://swi-prolog.discourse.group/t/how-to-contribute-examples-to-the-swi-prolog-documentation/3910>\
**Category:** Nice to know\
**Tags:** documentation\
**Created:** [May 5, 2021, 8:56am UTC](https://swi-prolog.discourse.group/t/how-to-contribute-examples-to-the-swi-prolog-documentation/3910 "2021-05-05T08:56:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [May 5, 2021, 8:56am UTC](https://swi-prolog.discourse.group/t/how-to-contribute-examples-to-the-swi-prolog-documentation/3910/1 "2021-05-05T08:56:59Z")

</div>

See: [SWI-Prolog examples](https://github.com/SWI-Prolog/plweb-examples)

length/2 has a few contributed examples.

---

<div class="post-metadata">

**Author:** ![Boris](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/boris/32/7486_2.png) [@Boris](https://swi-prolog.discourse.group/u/Boris)\
**Post date:** [May 5, 2021, 10:11am UTC](https://swi-prolog.discourse.group/t/how-to-contribute-examples-to-the-swi-prolog-documentation/3910/2 "2021-05-05T10:11:46Z")

</div>

This is information available in the readme of the link you shared, but still: any predicate that you use in the example you submit will end up including that example. This is one reason why length/2 but even more so maplist/2 has accumulated so many examples. The idea was that we should first get enough content before thinking of a more sophisticated approach.

I admit that I got swamped in work and haven’t had the motivation to contribute more examples. ☹

---

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [May 5, 2021, 10:18am UTC](https://swi-prolog.discourse.group/t/how-to-contribute-examples-to-the-swi-prolog-documentation/3910/3 "2021-05-05T10:18:06Z")

</div>

Thanks.

Happy to see your views.

I added this topic because yesterday I could not locate the topic that introduced the concept or find it at GitHub. So I put the link here (think breadcrumb) to help me and others find it again in the future. If you like I can convert this to a [Wiki](https://swi-prolog.discourse.group/c/wiki/12) topic with a separate [discussion](https://swi-prolog.discourse.group/c/wiki-discussion/18) topic and then you can edit the Wiki as needed. You clearly have more in depth knowledge and experience than me on the topic of adding SWI-Prolog examples in this manner.
