September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -1 +1 @@
|
|||
Y=. ((((&>)/)(1 : '(5!:5)<''x'''))(&([ 128!:2 ,&<)))f.
|
||||
Y=. ((((&>)/)((((^:_1)b.)(`(<'0';_1)))(`:6)))(&([ 128!:2 ,&<)))
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
u=. [ NB. Function (left)
|
||||
n=. ] NB. Argument (right)
|
||||
sr=. [ 128!:2 ,&< NB. Self referring
|
||||
sr=. [ apply f. ,&< NB. Self referring
|
||||
|
||||
fac=. (1:`(n * u sr n - 1:)) @. (0: < n)
|
||||
fac=. (1:`(n * u sr n - 1:)) @. (0 < n)
|
||||
fac f. Y 10
|
||||
3628800
|
||||
|
||||
Fib=. ((u sr n - 2:) + u sr n - 1:) ^: (1: < n)
|
||||
Fib=. ((u sr n - 2:) + u sr n - 1:) ^: (1 < n)
|
||||
Fib f. Y 10
|
||||
55
|
||||
|
|
|
|||
|
|
@ -1,9 +1,12 @@
|
|||
fac f. Y NB. Showing the stateless recursive factorial function...
|
||||
'1:`(] * [ ([ 128!:2 ,&<) ] - 1:)@.(0: < ])&>/'&([ 128!:2 ,&<)
|
||||
'1:`(] * [ ([ 128!:2 ,&<) ] - 1:)@.(0 < ])&>/'&([ 128!:2 ,&<)
|
||||
|
||||
fac f. NB. Showing the stateless factorial step...
|
||||
1:`(] * [ ([ 128!:2 ,&<) ] - 1:)@.(0: < ])
|
||||
1:`(] * [ ([ 128!:2 ,&<) ] - 1:)@.(0 < ])
|
||||
|
||||
|
||||
Fib f. Y NB. Showing the stateless recursive Fibonacci function...
|
||||
'(([ ([ 128!:2 ,&<) ] - 2:) + [ ([ 128!:2 ,&<) ] - 1:)^:(1: < ])&>/'&([ 128!:2 ,&<)
|
||||
'(([ ([ 128!:2 ,&<) ] - 2:) + [ ([ 128!:2 ,&<) ] - 1:)^:(1 < ])&>/'&([ 128!:2 ,&<)
|
||||
|
||||
Fib f. NB. Showing the stateless Fibonacci step...
|
||||
(([ ([ 128!:2 ,&<) ] - 2:) + [ ([ 128!:2 ,&<) ] - 1:)^:(1: < ])
|
||||
(([ ([ 128!:2 ,&<) ] - 2:) + [ ([ 128!:2 ,&<) ] - 1:)^:(1 < ])
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
sr=. [ 128!:2 ,&< NB. Self referring
|
||||
lw=. '(5!:5)<''x''' (1 :) NB. Linear representation of a word
|
||||
Y=. (&>)/lw(&sr) f.
|
||||
Y=. 'Y'f. NB. Fixing it
|
||||
sr=. [ apply f.,&< NB. Self referring
|
||||
lv=. (((^:_1)b.)(`(<'0';_1)))(`:6) NB. Linear representation of a verb argument
|
||||
Y=. (&>)/lv(&sr) f. NB. Y combinator
|
||||
Y=. 'Y'f. NB. Fixing it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue