mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-09-21 02:07:25 +03:00
Remove forgotten .field from docs.
This commit is contained in:
parent
b46064f688
commit
3b6d7a22e3
@ -988,8 +988,8 @@ type. The field names can be used to access the field values:
|
||||
"Fred" : String
|
||||
*Record> fred.age
|
||||
30 : Int
|
||||
*Record> :t (.firstName)
|
||||
Main.Person.(.firstName) : Person -> String
|
||||
*Record> :t firstName
|
||||
firstName : Person -> String
|
||||
|
||||
We can use prefix field projections, like in Haskell:
|
||||
|
||||
@ -999,8 +999,6 @@ We can use prefix field projections, like in Haskell:
|
||||
"Fred" : String
|
||||
*Record> age fred
|
||||
30 : Int
|
||||
*Record> :t firstName
|
||||
firstName : Person -> String
|
||||
|
||||
We can also use the field names to update a record (or, more
|
||||
precisely, produce a copy of the record with the given fields
|
||||
|
Loading…
Reference in New Issue
Block a user