pp SimpleHash route_from UserName hash Hash Generator process_step lam

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
pp SimpleHash[
:route_from=>:UserName,
:hash=>Hash[*Generator[
:process_step=>lambda{|x| x },
:route_from=>
SplitString[
:route_from=>
SimpleGenerator[
:sequence=> ["user11 10","user12 20","user13 30","user14 40","user11 50"],
],
:route_to=>
Generator[
:process_step=>lambda{|x| x[0] },
:route_to=>
UniqueValues[
:route_to=>:UserName,
]
]
],
].run.sequence.flatten]
].run
#<SimpleGenerator:0xb7cbfd60
@destroy_after_reset=false,
@index=-1,
@post_route=nil,
@process_find=nil,
@process_step=nil,
@reset_providers=false,
@route_from=[],
@route_to=[],
@sequence=
[["user11", "50"], ["user12", "20"], ["user13", "30"], ["user14", "40"]],
@sort=nil>