Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -1,4 +1,4 @@
|
|||
let rec pow =
|
||||
function
|
||||
| [] -> [[]]
|
||||
| x::xs -> [for i in pow xs do yield! [i;x::i]]
|
||||
| x::xs -> [for i in pow xs do yield! [i;x::I]]
|
||||
|
|
|
|||
5
Task/Power-set/F-Sharp/power-set-3.fs
Normal file
5
Task/Power-set/F-Sharp/power-set-3.fs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
let pow xs =
|
||||
let mutable subs = [[]]
|
||||
for x in xs do
|
||||
subs <- [for s in subs do yield! [s;x::s]]
|
||||
subs
|
||||
|
|
@ -1 +1 @@
|
|||
ps =: #~ 2 #:@i.@^ #
|
||||
ps=: #~ [: #:@i. 2^#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue