Mode:
Duration:
1
2
fib := [:n | n < 2 ifTrue: [n] ifFalse: [(fib value: n-1) + (fib value: n-2)]].
1 to: 10 do: [:i | Transcript show: (fib value: i); cr].Coding works best on desktop or with an external keyboard.
fib := [:n | n < 2 ifTrue: [n] ifFalse: [(fib value: n-1) + (fib value: n-2)]].
1 to: 10 do: [:i | Transcript show: (fib value: i); cr].Coding works best on desktop or with an external keyboard.
Generates first 10 Fibonacci numbers.
fib := [:n | n < 2 ifTrue: [n] ifFalse: [(fib value: n-1) + (fib value: n-2)]].
1 to: 10 do: [:i | Transcript show: (fib value: i); cr].Smalltalk is a dynamically typed, object-oriented programming language known for its pure object model, live environment, and influential role in the development of modern OOP concepts. Everything in Smalltalk is an object, including numbers, classes, and code blocks.
Origin & Creator
Smalltalk was created in the 1970s at Xerox PARC by Alan Kay, Dan Ingalls, Adele Goldberg, and others as part of the development of object-oriented programming and graphical user interfaces.
Industrial Note
Smalltalk has been widely used in educational environments, early GUI-based applications, research prototypes, and some enterprise applications requiring highly dynamic and reflective systems.