[squeak-dev] The Trunk: Help-Squeak-TerseGuide-topa.7.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Oct 7 11:19:00 UTC 2017

Tobias Pape uploaded a new version of Help-Squeak-TerseGuide to project The Trunk:

==================== Summary ====================

Name: Help-Squeak-TerseGuide-topa.7
Author: topa
Time: 7 October 2017, 1:20:21.797484 pm
UUID: 043213fa-d7ab-49a1-ac2d-e370a65c54c7
Ancestors: Help-Squeak-TerseGuide-pre.6

Fix symbols

=============== Diff against Help-Squeak-TerseGuide-pre.6 ===============

Item was changed:
  ----- Method: TerseGuideHelp class>>symbol (in category 'pages') -----
  		title: 'Symbol' 
   * Symbol:																			*
  | b x y |
  x := #Hello.									"symbol assignment"
+ y := #Symbol, ''Concatenation''.				"symbol concatenation (result is string)"
- y := ''String'', ''Concatenation''.				"symbol concatenation (result is string)"
  b := x isEmpty.								"test if symbol is empty"
  y := x size.									"string size"
  y := x at: 2.									"char at location"
  y := x copyFrom: 2 to: 4.					"substring"
  y := x indexOf: $e ifAbsent: [0].				"first position of character within string"
  x do: [:a | Transcript show: a printString; cr].	"iterate over the string"
  b := x allSatisfy: [:a | (a >= $a) & (a <= $z)].	"test if all elements meet condition"
  y := x select: [:a | a > $a].					"return all elements that meet condition"
  y := x asString.								"convert symbol to string"
  y := x asText.								"convert symbol to text"
  y := x asArray.								"convert symbol to array"
  y := x asOrderedCollection.					"convert symbol to ordered collection"
  y := x asSortedCollection.					"convert symbol to sorted collection"
  y := x asBag.								"convert symbol to bag collection"
  y := x asSet.								"convert symbol to set collection"

More information about the Squeak-dev mailing list