Add tags

Add tags to the following comment
すこし簡略化しました。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
function cp(lists){
  if (size(lists) == 0){
    yield {}
  } else {
    for (lss : cp(lists[1..])){
      for (ls : lists[0]) yield {ls} + lss
    }
  }
}
printAll(cp([{1,2,3,4}, "abc"]))

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...