Cool Train

For users of dfns, both novice and expert

Cool Train

Postby JohnS|Dyalog on Wed Jul 30, 2014 11:08 am

I just happened upon this train, which is a pervasive, ambi-valent zero function:

      zero ← |||
zero 3 ⍝ zero is ...
0
2 zero 3 ⍝ ... ambi-valent
0
3(4 5) zero (6j7 ¯8.9)42 ⍝ zero is pervasive
┌───┬───┐
│0 0│0 0│
└───┴───┘
zero ← |||||||||||| ⍝ alternative coding
4 zero 5
0
zero ⍝ looks a bit like a centipede
┌─┴─┐
| ┌─┼───┐
| | ┌─┼───┐
| | ┌─┼───┐
| | ┌─┼───┐
| | ┌─┼─┐
| | |

Zero is Phil Last's 0th logic function in http://dfns.dyalog.com/n_logic.htm
User avatar
JohnS|Dyalog
 
Posts: 173
Joined: Wed Sep 10, 2008 10:01 am

Return to Functional Programming

Who is online

Users browsing this forum: No registered users and 1 guest