Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 267 Bytes

smalltalk-conditionals.md

File metadata and controls

17 lines (11 loc) · 267 Bytes

Smalltalk conditionals

def  true.-(a, &b); a[] end
def false.-(a, &b); b[] end

puts (1 == 1).--> { :ok } { :different }
puts (4 == 2).--> { :ok } { :different }

# Result:
# # ok
# # different

View Source