init
This commit is contained in:
commit
90459e5765
5 changed files with 396 additions and 0 deletions
20
readme.md
Normal file
20
readme.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
```py
|
||||
Just(1) @ id % fromJust
|
||||
```
|
||||
|
||||
```py
|
||||
match Right([4, 12, 18, 15, 23, -64, 15, 12, 12, 5, 8]) \
|
||||
@ (lambda x: map(chr, [y + 96 for y in x])) \
|
||||
@ list @ reversed \
|
||||
@ (lambda x: ''.join(x) + '!'):
|
||||
case Right(value,):
|
||||
print(value)
|
||||
case Left(value,):
|
||||
raise value
|
||||
```
|
||||
|
||||
```py
|
||||
Right(1) \
|
||||
% whenLeft(exit, _) \
|
||||
% mapRight((lambda x: 2), _)
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue