sourceuserlibs/Hello.xtl

1⍝# Hello: the smallest library, one greeting. A library is an ordinary 2⍝# file whose exported names start with l:; libraries of your own live 3⍝# in userlibs/, on the search path. demos/hello-library.xtl imports it 4⍝# ("hi:" u_se< "Hello"), and docs/literate/hello.org walks through 5⍝# both. The name in the string is the logo: typed X_ e:T a:L, drawn, 6⍝# spaces removed (a string may hold any Unicode). 7 8⍝# The greeting, as text (niladic: call it with @). 9⍝# >> "hi:" u_se< "Hello" 10⍝# >> hi:h_ello @ 11⍝# hello X̲ᵉTᵃL 12ˡh̲ello ← { @ → "hello X̲ᵉTᵃL" } ⍝ niladic: call it with @