summaryrefslogtreecommitdiff
path: root/prolog/problems/sorting/sins_3/sl.py
blob: 22e51b295762edadde95fba89d743783bce4e22a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# coding=utf-8

name = 'sins/3'
slug = 'Vstavi element na ustrezno mesto v urejen seznam'

description = '''\
<p><code>sins(X, SortedList, NewList)</code>: seznam <code>NewList</code> dobiš tako, da vstaviš element <code>X</code> v <code>SortedList</code> na ustrezno mesto tako, da ohraniš urejenost elementov.</p>
<pre>
  ?- sins(4, [1,2,3,5], L).
    L = [1,2,3,4,5].
  ?- sins(3, [1,2,3,4], L).
    L = [1,2,3,3,4].
</pre>'''

hint = {}