A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
29
Task/Function-frequency/J/function-frequency.j
Normal file
29
Task/Function-frequency/J/function-frequency.j
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
PRIMITIVES=: ;:'! !. !: " ". ": # #. #: $ $. $: % %. %: & &. &.: &: * *. *: + +. +: , ,. ,: - -. -: . .. .: / /. /: 0: 1: 2: 3: 4: 5: 6: 7: 8: 9: : :. :: ; ;. ;: < <. <: = =. =: > >. >: ? ?. ...'
|
||||
|
||||
Filter=: (#~`)(`:6)
|
||||
|
||||
NB. monad top10 . y is a character vector of much j source code
|
||||
top10=: 10 {. \:~@:((#;{.)/.~@:(e.&PRIMITIVES Filter@:;:))
|
||||
|
||||
top10 JSOURCE NB. JSOURCE are the j Zeckendorf verbs.
|
||||
┌─┬──┐
|
||||
│6│=.│
|
||||
├─┼──┤
|
||||
│5│=:│
|
||||
├─┼──┤
|
||||
│4│@:│
|
||||
├─┼──┤
|
||||
│3│~ │
|
||||
├─┼──┤
|
||||
│3│: │
|
||||
├─┼──┤
|
||||
│3│+ │
|
||||
├─┼──┤
|
||||
│3│$ │
|
||||
├─┼──┤
|
||||
│2│|.│
|
||||
├─┼──┤
|
||||
│2│i.│
|
||||
├─┼──┤
|
||||
│2│/ │
|
||||
└─┴──┘
|
||||
Loading…
Add table
Add a link
Reference in a new issue