praxis

Various programming exercises.
git clone git://git.jtobin.io/praxis.git
Log | Files | Refs

common.ijs (337B)


      1 
      2 test0 =. 1 5 10 20 40 80
      3 test1 =. 6 7 10 20 80 100
      4 test2 =. 3 4 15 20 30 70 80 120
      5 
      6 test3 =. 1 5 5 5
      7 test4 =. 3 4 5 5 10
      8 test5 =. 5 5 10 20
      9 
     10 NB. for a given array, want keys and counts
     11 NB. should be easy.  vals become keys, counts are reported
     12 
     13 histogram =. ({. ; #) /. ~
     14 
     15 NB. next need intersection of sorts between these boxed arrays