Created
June 18, 2014 03:27
-
-
Save snipsnipsnip/3db171ec7192c9bc760f to your computer and use it in GitHub Desktop.
name_value_table.ijs: Hashのようなもの
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coclass 'NameValueTable' | |
PREFIX =: 'ENTRY' | |
NB. =: Indirectly Used Copula. http://www.jsoftware.com/help/dictionary/d001.htm | |
set =: dyad define | |
(PREFIX , x) =: y | |
) | |
NB. ~ as Evoke. http://www.jsoftware.com/help/dictionary/d220n.htm | |
get =: verb define | |
EMPTY get y | |
: | |
y =. PREFIX , y | |
if. 0 <: nameclass < y do. | |
y~ | |
else. | |
x | |
end. | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment