« first day (1032 days earlier)      last day (1625 days later) » 

9:53 AM
I'm lazy, so i like easy expressions, one at first see understand… what is the traslation in APL of this:
lambda A:({v:A.count(v)/2for v in A},{v for v in A if A.count(v)%2})
https://codegolf.stackexchange.com/a/196247/58988
 
 
4 hours later…
ngn
1:28 PM
@RosLuP a direct translation would be impossible because apl doesn't have dictionaries. dyalog has "namespaces" but those are a poor substitute.
the closest translation i can make is {(∪⍵,¨⌊(⍵+.=¨⊂⍵)÷2)(∪(2|⍵+.=¨⊂⍵)/⍵)}, representing the dictionary as a vector of key-value pairs
 
 
7 hours later…
8:23 PM
one possible traslation in APL of the set build from one other set could be: the key for me it is

I←{(⍺⍺¨⍵)/⍵}

in math mode { x : xeA and P(x)} would be in APL just P I A
in math mode {f(x): xeA and P(x)} would be in APL just f P I A

c is count v is the function return the first set , t return the second set
c←{+/⍵=⍺}
v←{∪{0≠2∣⍵c a}I a←⍵}
t←{a←⍵⋄b←{0≠⌊2÷⍨⍵c a}I∪⍵⋄b,¨{⌊2÷⍨⍵c a}¨b}
f←{(⊂t⍵),⊂v⍵}
⎕fmt f 1 2 1
┌2────────────┐
│┌1─────┐ ┌1─┐│
││┌2───┐│ │ 2││
│││ 1 1││ └~─┘│
││└~───┘2 │
│└∊─────┘ 3
 
 
2 hours later…
10:09 PM
@SocraticPhoenix Welcome back! One thing that would be really nice is if it could let us know when it gas gone out, so we can reboot it automatically. Right now we have to just notice it is gone, and then manually revive it.
 

« first day (1032 days earlier)      last day (1625 days later) »