Sha256: fa9feff6e65f5eeac6465fa82715483cbb5fcb50681383fb34e12b5e8db2a9a8
Contents?: true
Size: 459 Bytes
Versions: 317
Compression:
Stored size: 459 Bytes
Contents
module SecretHandshake let commands = [(1 <<< 0, (fun acc -> acc @ ["wink"])); (1 <<< 1, (fun acc -> acc @ ["double blink"])); (1 <<< 2, (fun acc -> acc @ ["close your eyes"])); (1 <<< 3, (fun acc -> acc @ ["jump"])) (1 <<< 4, (fun acc -> acc |> List.rev))] let applyCommand number acc (mask, apply) = if number &&& mask <> 0 then apply acc else acc let handshake number = commands |> List.fold (applyCommand number) []
Version data entries
317 entries across 317 versions & 1 rubygems