We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83e12a6 commit 8a4e08dCopy full SHA for 8a4e08d
src/rewriters.jl
@@ -50,8 +50,8 @@ end
50
51
If(f, x) = IfElse(f, x, Empty())
52
53
-struct Chain{Cs}
54
- rws::Cs
+struct Chain
+ rws
55
end
56
57
function (rw::Chain)(x)
@@ -64,19 +64,6 @@ function (rw::Chain)(x)
64
return x
65
66
67
-@generated function (rw::Chain{<:NTuple{N,Any}})(x) where N
68
- quote
69
- Base.@nexprs $N i->begin
70
- let f = rw.rws[i]
71
- y = @timer cached_repr(f) f(x)
72
- if y !== nothing
73
- x = y
74
- end
75
76
77
- return x
78
79
-end
80
81
struct RestartedChain{Cs}
82
rws::Cs
0 commit comments