Non-continuous subsequences: Difference between revisions

m
→‎{{header|Picat}}: code tag for predicates
m (→‎{{header|Picat}}: code tag for predicates)
Line 1,896:
 
=={{header|Picat}}==
This approach uses <code>power_set/1</code> (from the utils<code>util</code> module) to get the proper indices.
 
<lang Picat>import util.
Line 1,949:
[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] = 524097
[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] = 1048365</pre>
 
 
=={{header|PicoLisp}}==
495

edits