cryptol/tests/issues/issue474.icry

4 lines
140 B
Plaintext
Raw Normal View History

2017-10-20 21:09:51 +03:00
let mapping = ['A' .. 'Z'] <<< 13
let mapped c = if (('A' <= c) && (c <= 'Z')) then (mapping @ (c - 'A')) else c
:sat \x -> mapped x == 'N'